Interface SupportsStatusChangeHandler<C extends com.vaadin.flow.component.Component>

Type Parameters:
C - the component type
All Known Implementing Classes:
EntityComboBox, EntityPicker, FileStorageUploadField, FileUploadField, JmixBigDecimalField, JmixCheckboxGroup, JmixComboBox, JmixEmailField, JmixIntegerField, JmixMultiValuePicker, JmixNumberField, JmixPasswordField, JmixRadioButtonGroup, JmixSelect, JmixTextArea, JmixValuePicker, TypedDatePicker, TypedDateTimePicker, TypedTextField, TypedTimePicker

public interface SupportsStatusChangeHandler<C extends com.vaadin.flow.component.Component>
A component that supports delegation of status changes e.g. instead of displaying validation messages below the component use a separate component such as Label.
  • Method Details

    • setStatusChangeHandler

      void setStatusChangeHandler(@Nullable Consumer<SupportsStatusChangeHandler.StatusContext<C>> handler)
      Sets a callback to be used to handle component status changes, e.g. validation messages set by HasValidation.setErrorMessage(String).
      Parameters:
      handler - a handler to set