com.vaadin.flow.component.textfield.
Class BigDecimalField.BigDecimalFieldI18n
All Implemented Interfaces:
Enclosing class:
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 type
BigDecimal
.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 type
BigDecimal
.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 type
BigDecimal
.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 type
BigDecimal
.Note, custom error messages set with
BigDecimalField.setErrorMessage(String)
take priority over i18n error messages.Parameters:
errorMessage
- the error message to set, ornull
to clearReturns:
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 setSee 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 itReturns:
this instance for method chaining
See Also:
-