Package io.jmix.flowui.component
Interface SupportsStatusChangeHandler<C extends com.vaadin.flow.component.Component>
- Type Parameters:
C- the component type
- All Known Implementing Classes:
CodeEditor,EntityComboBox,EntityPicker,FileStorageUploadField,FileUploadField,JmixBigDecimalField,JmixCheckboxGroup,JmixComboBox,JmixEmailField,JmixIntegerField,JmixMultiValuePicker,JmixNumberField,JmixPasswordField,JmixRadioButtonGroup,JmixSelect,JmixTextArea,JmixValuePicker,TypedDatePicker,TypedDateTimePicker,TypedTextField,TypedTimePicker,WebdavDocumentUploadField
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classSupportsStatusChangeHandler.StatusContext<C extends com.vaadin.flow.component.Component> -
Method Summary
Modifier and TypeMethodDescriptionvoidSets a callback to be used to handle component status changes, e.g.
-
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 byHasValidation.setErrorMessage(String).- Parameters:
handler- a handler to set
-