Package io.jmix.flowui.component
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
SupportsStatusChangeHandler.StatusContext<C extends com.vaadin.flow.component.Component>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets 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
-