Class BigDecimalField.BigDecimalFieldI18n
java.lang.Object
com.vaadin.flow.component.textfield.BigDecimalField.BigDecimalFieldI18n
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BigDecimalField
The internationalization properties for
BigDecimalField
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the error message displayed when the field contains user input that the server is unable to convert to typeBigDecimal
.Gets the error message displayed when the field is required but empty.setBadInputErrorMessage
(String errorMessage) Sets the error message to display when the field contains user input that the server is unable to convert to typeBigDecimal
.setRequiredErrorMessage
(String errorMessage) Sets the error message to display when the field is required but empty.
-
Constructor Details
-
BigDecimalFieldI18n
public BigDecimalFieldI18n()
-
-
Method Details
-
getBadInputErrorMessage
Gets the error message displayed when the field contains user input that the server is unable to convert to typeBigDecimal
.- Returns:
- the error message or
null
if not set
-
setBadInputErrorMessage
Sets the error message to display when the field contains user input that the server is unable to convert to typeBigDecimal
.Note, custom error messages set with
BigDecimalField.setErrorMessage(String)
take priority over i18n error messages.- Parameters:
errorMessage
- the error message to set, ornull
to clear- Returns:
- this instance for method chaining
-
getRequiredErrorMessage
Gets the error message displayed when the field is required but empty.- 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
BigDecimalField.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:
-