Package io.jmix.flowui.component
Interface SupportsValidation<V>
- All Superinterfaces:
com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasValidation
,com.vaadin.flow.component.shared.HasValidationProperties
,Serializable
- All Known Implementing Classes:
AbstractConfigurationDetail
,CodeEditor
,EntityComboBox
,EntityPicker
,FileStorageUploadField
,FileUploadField
,FilterConfigurationDetail
,FullTextFilter
,JmixBigDecimalField
,JmixCheckboxGroup
,JmixComboBox
,JmixEmailField
,JmixIntegerField
,JmixMultiSelectComboBox
,JmixMultiSelectComboBoxPicker
,JmixMultiValuePicker
,JmixNumberField
,JmixPasswordField
,JmixRadioButtonGroup
,JmixSelect
,JmixTextArea
,JmixValuePicker
,JpqlFilter
,PropertyFilter
,SingleFilterComponentBase
,TypedDatePicker
,TypedDateTimePicker
,TypedTextField
,TypedTimePicker
,UiDataFilterConfigurationDetail
,WebdavDocumentUploadField
public interface SupportsValidation<V>
extends com.vaadin.flow.component.shared.HasValidationProperties
-
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
setManualValidation
Methods inherited from interface com.vaadin.flow.component.shared.HasValidationProperties
isInvalid
-
Field Details
-
PROPERTY_ERROR_MESSAGE
- See Also:
-
-
Method Details
-
addValidator
-
executeValidators
- Throws:
ValidationException
-
getErrorMessage
- Specified by:
getErrorMessage
in interfacecom.vaadin.flow.component.HasValidation
- Specified by:
getErrorMessage
in interfacecom.vaadin.flow.component.shared.HasValidationProperties
-
setErrorMessage
- Specified by:
setErrorMessage
in interfacecom.vaadin.flow.component.HasValidation
- Specified by:
setErrorMessage
in interfacecom.vaadin.flow.component.shared.HasValidationProperties
-
setInvalid
void setInvalid(boolean invalid) Sets invalid state to the field considering result of field validation.- Invalid - false and validation passed - false = field is invalid
- 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 invalid
- Specified by:
setInvalid
in interfacecom.vaadin.flow.component.HasValidation
- Specified by:
setInvalid
in interfacecom.vaadin.flow.component.shared.HasValidationProperties
- Parameters:
invalid
- whether field should be invalid
-