Class TimePicker.TimePickerI18n
java.lang.Object
com.vaadin.flow.component.timepicker.TimePicker.TimePickerI18n
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TimePicker
The internationalization properties for
TimePicker
.- 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 typeLocalTime
.Gets the error message displayed when the selected time is later than the maximum allowed time.Gets the error message displayed when the selected time is earlier than the minimum allowed time.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 typeLocalTime
.setMaxErrorMessage
(String errorMessage) Sets the error message to display when the selected time is later than the maximum allowed time.setMinErrorMessage
(String errorMessage) Sets the error message to display when the selected time is earlier than the minimum allowed time.setRequiredErrorMessage
(String errorMessage) Sets the error message to display when the field is required but empty.
-
Constructor Details
-
TimePickerI18n
public TimePickerI18n()
-
-
Method Details
-
getBadInputErrorMessage
Gets the error message displayed when the field contains user input that the server is unable to convert to typeLocalTime
.- 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 typeLocalTime
.Note, custom error messages set with
TimePicker.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
TimePicker.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:
-
getMinErrorMessage
Gets the error message displayed when the selected time is earlier than the minimum allowed time.- Returns:
- the error message or
null
if not set - See Also:
-
setMinErrorMessage
Sets the error message to display when the selected time is earlier than the minimum allowed time.Note, custom error messages set with
TimePicker.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:
-
getMaxErrorMessage
Gets the error message displayed when the selected time is later than the maximum allowed time.- Returns:
- the error message or
null
if not set - See Also:
-
setMaxErrorMessage
Sets the error message to display when the selected time is later than the maximum allowed time.Note, custom error messages set with
TimePicker.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:
-