Class DateTimeComboPickerI18n
java.lang.Object
org.vaadin.addons.krissvaa.datetimecombopicker.DateTimeComboPickerI18n
- All Implemented Interfaces:
Serializable
Internationalization settings for
DateTimeComboPicker. Any property
left null keeps the component's built-in (English) default.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAm()Gets the AM marker text.Gets the error message shown when the typed text does not match the format pattern.Gets the label of the Cancel button in the action bar (shown when auto-apply is disabled).Gets the error message shown when the value's date is disabled viaDateTimeComboPicker.setDateDisabledFunction(String).Gets the label of the Date tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).intGets the first day of the week, 0 = Sunday ...getHours()Gets the accessible label of the hours column.Gets the error message shown when the value is later than the maximum.Gets the accessible label of the AM/PM column.Gets the error message shown when the value is earlier than the minimum.Gets the accessible label of the minutes column.Gets the month names, January first.Gets the accessible label of the next-month button.getOk()Gets the label of the OK button in the action bar (shown when auto-apply is disabled).getPm()Gets the PM marker text.Gets the accessible label of the previous-month button.Gets the error message shown when a required field is left empty.Gets the accessible label of the seconds column.Gets the label of the Time tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).getToday()Gets the label of the "Today" button.Gets the weekday names, Sunday first.Gets the short weekday names, Sunday first.getYear()Gets the accessible label of the year selector (the popup's month-year header button and the year grid).Sets the AM marker text shown in the AM/PM column.setBadInputErrorMessage(String badInputErrorMessage) Sets the error message shown when the typed text does not match the format pattern.Sets the label of the Cancel button in the action bar.setDateDisabledErrorMessage(String dateDisabledErrorMessage) Sets the error message shown when the value's date is disabled viaDateTimeComboPicker.setDateDisabledFunction(String).setDateTab(String dateTab) Sets the label of the Date tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).setFirstDayOfWeek(int firstDayOfWeek) Sets the first day of the week, 0 = Sunday ...Sets the accessible label of the hours column.setMaxErrorMessage(String maxErrorMessage) Sets the error message shown when the value is later than the maximum.setMeridiem(String meridiem) Sets the accessible label of the AM/PM column.setMinErrorMessage(String minErrorMessage) Sets the error message shown when the value is earlier than the minimum.setMinutes(String minutes) Sets the accessible label of the minutes column.setMonthNames(List<String> monthNames) Sets the month names, January first.setNextMonth(String nextMonth) Sets the accessible label of the next-month button.Sets the label of the OK button in the action bar.Sets the PM marker text shown in the AM/PM column.setPrevMonth(String prevMonth) Sets the accessible label of the previous-month button.setRequiredErrorMessage(String requiredErrorMessage) Sets the error message shown when a required field is left empty.setSeconds(String seconds) Sets the accessible label of the seconds column.setTimeTab(String timeTab) Sets the label of the Time tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).Sets the label of the "Today" button.setWeekdays(List<String> weekdays) Sets the weekday names, Sunday first.setWeekdaysShort(List<String> weekdaysShort) Sets the short weekday names, Sunday first.Sets the accessible label of the year selector.
-
Constructor Details
-
DateTimeComboPickerI18n
public DateTimeComboPickerI18n()
-
-
Method Details
-
getMonthNames
Gets the month names, January first.- Returns:
- the month names, or
nullfor the defaults
-
setMonthNames
Sets the month names, January first. Must contain 12 entries.- Parameters:
monthNames- the month names- Returns:
- this instance for method chaining
-
getWeekdays
Gets the weekday names, Sunday first.- Returns:
- the weekday names, or
nullfor the defaults
-
setWeekdays
Sets the weekday names, Sunday first. Must contain 7 entries.- Parameters:
weekdays- the weekday names- Returns:
- this instance for method chaining
-
getWeekdaysShort
Gets the short weekday names, Sunday first.- Returns:
- the short weekday names, or
nullfor the defaults
-
setWeekdaysShort
Sets the short weekday names, Sunday first. Must contain 7 entries.- Parameters:
weekdaysShort- the short weekday names- Returns:
- this instance for method chaining
-
getFirstDayOfWeek
public int getFirstDayOfWeek()Gets the first day of the week, 0 = Sunday ... 6 = Saturday.- Returns:
- the first day of the week
-
setFirstDayOfWeek
Sets the first day of the week, 0 = Sunday ... 6 = Saturday.- Parameters:
firstDayOfWeek- the first day of the week- Returns:
- this instance for method chaining
-
getToday
Gets the label of the "Today" button.- Returns:
- the label, or
nullfor the default
-
setToday
Sets the label of the "Today" button.- Parameters:
today- the label- Returns:
- this instance for method chaining
-
getYear
Gets the accessible label of the year selector (the popup's month-year header button and the year grid).- Returns:
- the label, or
nullfor the default
-
setYear
Sets the accessible label of the year selector.- Parameters:
year- the label- Returns:
- this instance for method chaining
-
getOk
Gets the label of the OK button in the action bar (shown when auto-apply is disabled).- Returns:
- the label, or
nullfor the default
-
setOk
Sets the label of the OK button in the action bar.- Parameters:
ok- the label- Returns:
- this instance for method chaining
-
getCancel
Gets the label of the Cancel button in the action bar (shown when auto-apply is disabled).- Returns:
- the label, or
nullfor the default
-
setCancel
Sets the label of the Cancel button in the action bar.- Parameters:
cancel- the label- Returns:
- this instance for method chaining
-
getPrevMonth
Gets the accessible label of the previous-month button.- Returns:
- the label, or
nullfor the default
-
setPrevMonth
Sets the accessible label of the previous-month button.- Parameters:
prevMonth- the label- Returns:
- this instance for method chaining
-
getNextMonth
Gets the accessible label of the next-month button.- Returns:
- the label, or
nullfor the default
-
setNextMonth
Sets the accessible label of the next-month button.- Parameters:
nextMonth- the label- Returns:
- this instance for method chaining
-
getDateTab
Gets the label of the Date tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).- Returns:
- the label, or
nullfor the default
-
setDateTab
Sets the label of the Date tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).- Parameters:
dateTab- the label- Returns:
- this instance for method chaining
-
getTimeTab
Gets the label of the Time tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).- Returns:
- the label, or
nullfor the default
-
setTimeTab
Sets the label of the Time tab in the tabbed fullscreen layout (seeDateTimeComboPicker.setMobileTabs(boolean)).- Parameters:
timeTab- the label- Returns:
- this instance for method chaining
-
getHours
Gets the accessible label of the hours column.- Returns:
- the label, or
nullfor the default
-
setHours
Sets the accessible label of the hours column.- Parameters:
hours- the label- Returns:
- this instance for method chaining
-
getMinutes
Gets the accessible label of the minutes column.- Returns:
- the label, or
nullfor the default
-
setMinutes
Sets the accessible label of the minutes column.- Parameters:
minutes- the label- Returns:
- this instance for method chaining
-
getSeconds
Gets the accessible label of the seconds column.- Returns:
- the label, or
nullfor the default
-
setSeconds
Sets the accessible label of the seconds column.- Parameters:
seconds- the label- Returns:
- this instance for method chaining
-
getMeridiem
Gets the accessible label of the AM/PM column.- Returns:
- the label, or
nullfor the default
-
setMeridiem
Sets the accessible label of the AM/PM column.- Parameters:
meridiem- the label- Returns:
- this instance for method chaining
-
getAm
Gets the AM marker text.- Returns:
- the text, or
nullfor the default
-
setAm
Sets the AM marker text shown in the AM/PM column.- Parameters:
am- the text- Returns:
- this instance for method chaining
-
getPm
Gets the PM marker text.- Returns:
- the text, or
nullfor the default
-
setPm
Sets the PM marker text shown in the AM/PM column.- Parameters:
pm- the text- Returns:
- this instance for method chaining
-
getBadInputErrorMessage
Gets the error message shown when the typed text does not match the format pattern.- Returns:
- the message, or
nullto use the generic error message
-
setBadInputErrorMessage
Sets the error message shown when the typed text does not match the format pattern. When not set, the genericerror messageis used.- Parameters:
badInputErrorMessage- the message- Returns:
- this instance for method chaining
-
getRequiredErrorMessage
Gets the error message shown when a required field is left empty.- Returns:
- the message, or
nullto use the generic error message
-
setRequiredErrorMessage
Sets the error message shown when a required field is left empty. When not set, the generic error message is used.- Parameters:
requiredErrorMessage- the message- Returns:
- this instance for method chaining
-
getMinErrorMessage
Gets the error message shown when the value is earlier than the minimum.- Returns:
- the message, or
nullto use the generic error message
-
setMinErrorMessage
Sets the error message shown when the value is earlier than the minimum. When not set, the generic error message is used.- Parameters:
minErrorMessage- the message- Returns:
- this instance for method chaining
-
getMaxErrorMessage
Gets the error message shown when the value is later than the maximum.- Returns:
- the message, or
nullto use the generic error message
-
setMaxErrorMessage
Sets the error message shown when the value is later than the maximum. When not set, the generic error message is used.- Parameters:
maxErrorMessage- the message- Returns:
- this instance for method chaining
-
getDateDisabledErrorMessage
Gets the error message shown when the value's date is disabled viaDateTimeComboPicker.setDateDisabledFunction(String).- Returns:
- the message, or
nullto use the generic error message
-
setDateDisabledErrorMessage
Sets the error message shown when the value's date is disabled viaDateTimeComboPicker.setDateDisabledFunction(String). When not set, the generic error message is used.- Parameters:
dateDisabledErrorMessage- the message- Returns:
- this instance for method chaining
-