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