Package io.jmix.flowui.component
Interface SupportsValidation<V>
- All Superinterfaces:
com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasValidation
,Serializable
- All Known Implementing Classes:
EntityComboBox
,EntityPicker
,JmixBigDecimalField
,JmixCheckboxGroup
,JmixComboBox
,JmixEmailField
,JmixIntegerField
,JmixMultiValuePicker
,JmixNumberField
,JmixPasswordField
,JmixRadioButtonGroup
,JmixSelect
,JmixTextArea
,JmixValuePicker
,TypedDatePicker
,TypedDateTimePicker
,TypedTextField
,TypedTimePicker
public interface SupportsValidation<V>
extends com.vaadin.flow.component.HasValidation, com.vaadin.flow.component.HasElement
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.Registration
addValidator
(Validator<? super V> validator) void
default String
default void
setErrorMessage
(String errorMessage) void
setInvalid
(boolean invalid) Sets invalid state to the field considering result of field validation.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasValidation
isInvalid
-
Field Details
-
PROPERTY_ERROR_MESSAGE
- See Also:
-
-
Method Details
-
addValidator
-
executeValidators
- Throws:
ValidationException
-
getErrorMessage
- Specified by:
getErrorMessage
in interfacecom.vaadin.flow.component.HasValidation
-
setErrorMessage
- Specified by:
setErrorMessage
in interfacecom.vaadin.flow.component.HasValidation
-
setInvalid
void setInvalid(boolean invalid) Sets invalid state to the field considering result of field validation.- Invalid - false and validation passed - false = field is valid
- Invalid - false and validation passed - true = field is valid
- Invalid - true and validation passed - false = field is invalid
- Invalid - true and validation passed - true = field is valid
- Specified by:
setInvalid
in interfacecom.vaadin.flow.component.HasValidation
- Parameters:
invalid
- whether field should be invalid
-