Class Switch.SwitchI18n
java.lang.Object
com.vaadin.flow.component.checkbox.Switch.SwitchI18n
- All Implemented Interfaces:
Serializable
- Enclosing class:
Switch
The internationalization properties for
Switch.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the error message displayed when the field is required but not checked.setRequiredErrorMessage(String errorMessage) Sets the error message to display when the field is required but not checked.
-
Constructor Details
-
SwitchI18n
public SwitchI18n()
-
-
Method Details
-
getRequiredErrorMessage
Gets the error message displayed when the field is required but not checked.- Returns:
- the error message or
nullif not set - See Also:
-
setRequiredErrorMessage
Sets the error message to display when the field is required but not checked.Note, custom error messages set with
HasValidationProperties.setErrorMessage(String)take priority over i18n error messages.- Parameters:
errorMessage- the error message ornullto clear it- Returns:
- this instance for method chaining
- See Also:
-