Class ComboBox.ComboBoxI18n
java.lang.Object
com.vaadin.flow.component.combobox.ComboBox.ComboBoxI18n
- All Implemented Interfaces:
ComboBoxBaseI18n
,Serializable
The internationalization properties for
ComboBox
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the error message displayed when the field is required but empty.setRequiredErrorMessage
(String errorMessage) Sets the error message to display when the field is required but empty.
-
Constructor Details
-
ComboBoxI18n
public ComboBoxI18n()
-
-
Method Details
-
getRequiredErrorMessage
Gets the error message displayed when the field is required but empty.- Specified by:
getRequiredErrorMessage
in interfaceComboBoxBaseI18n
- Returns:
- the error message or
null
if not set - See Also:
-
setRequiredErrorMessage
Sets the error message to display when the field is required but empty.Note, custom error messages set with
HasValidationProperties.setErrorMessage(String)
take priority over i18n error messages.- Parameters:
errorMessage
- the error message ornull
to clear it- Returns:
- this instance for method chaining
- See Also:
-