Class DateTimeComboPickerI18n

java.lang.Object
org.vaadin.addons.krissvaa.datetimecombopicker.DateTimeComboPickerI18n
All Implemented Interfaces:
Serializable

public class DateTimeComboPickerI18n extends Object implements Serializable
Internationalization settings for DateTimeComboPicker. Any property left null keeps the component's built-in (English) default.
See Also:
  • Constructor Details

    • DateTimeComboPickerI18n

      public DateTimeComboPickerI18n()
  • Method Details

    • getMonthNames

      public List<String> getMonthNames()
      Gets the month names, January first.
      Returns:
      the month names, or null for the defaults
    • setMonthNames

      public DateTimeComboPickerI18n setMonthNames(List<String> monthNames)
      Sets the month names, January first. Must contain 12 entries.
      Parameters:
      monthNames - the month names
      Returns:
      this instance for method chaining
    • getWeekdays

      public List<String> getWeekdays()
      Gets the weekday names, Sunday first.
      Returns:
      the weekday names, or null for the defaults
    • setWeekdays

      public DateTimeComboPickerI18n setWeekdays(List<String> weekdays)
      Sets the weekday names, Sunday first. Must contain 7 entries.
      Parameters:
      weekdays - the weekday names
      Returns:
      this instance for method chaining
    • getWeekdaysShort

      public List<String> getWeekdaysShort()
      Gets the short weekday names, Sunday first.
      Returns:
      the short weekday names, or null for the defaults
    • setWeekdaysShort

      public DateTimeComboPickerI18n setWeekdaysShort(List<String> weekdaysShort)
      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

      public DateTimeComboPickerI18n setFirstDayOfWeek(int firstDayOfWeek)
      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

      public String getToday()
      Gets the label of the "Today" button.
      Returns:
      the label, or null for the default
    • setToday

      public DateTimeComboPickerI18n setToday(String today)
      Sets the label of the "Today" button.
      Parameters:
      today - the label
      Returns:
      this instance for method chaining
    • getYear

      public String getYear()
      Gets the accessible label of the year selector (the popup's month-year header button and the year grid).
      Returns:
      the label, or null for the default
    • setYear

      public DateTimeComboPickerI18n setYear(String year)
      Sets the accessible label of the year selector.
      Parameters:
      year - the label
      Returns:
      this instance for method chaining
    • getOk

      public String getOk()
      Gets the label of the OK button in the action bar (shown when auto-apply is disabled).
      Returns:
      the label, or null for the default
    • setOk

      public DateTimeComboPickerI18n setOk(String ok)
      Sets the label of the OK button in the action bar.
      Parameters:
      ok - the label
      Returns:
      this instance for method chaining
    • getCancel

      public String getCancel()
      Gets the label of the Cancel button in the action bar (shown when auto-apply is disabled).
      Returns:
      the label, or null for the default
    • setCancel

      public DateTimeComboPickerI18n setCancel(String cancel)
      Sets the label of the Cancel button in the action bar.
      Parameters:
      cancel - the label
      Returns:
      this instance for method chaining
    • getPrevMonth

      public String getPrevMonth()
      Gets the accessible label of the previous-month button.
      Returns:
      the label, or null for the default
    • setPrevMonth

      public DateTimeComboPickerI18n setPrevMonth(String prevMonth)
      Sets the accessible label of the previous-month button.
      Parameters:
      prevMonth - the label
      Returns:
      this instance for method chaining
    • getNextMonth

      public String getNextMonth()
      Gets the accessible label of the next-month button.
      Returns:
      the label, or null for the default
    • setNextMonth

      public DateTimeComboPickerI18n setNextMonth(String nextMonth)
      Sets the accessible label of the next-month button.
      Parameters:
      nextMonth - the label
      Returns:
      this instance for method chaining
    • getDateTab

      public String getDateTab()
      Gets the label of the Date tab in the tabbed fullscreen layout (see DateTimeComboPicker.setMobileTabs(boolean)).
      Returns:
      the label, or null for the default
    • setDateTab

      public DateTimeComboPickerI18n setDateTab(String dateTab)
      Sets the label of the Date tab in the tabbed fullscreen layout (see DateTimeComboPicker.setMobileTabs(boolean)).
      Parameters:
      dateTab - the label
      Returns:
      this instance for method chaining
    • getTimeTab

      public String getTimeTab()
      Gets the label of the Time tab in the tabbed fullscreen layout (see DateTimeComboPicker.setMobileTabs(boolean)).
      Returns:
      the label, or null for the default
    • setTimeTab

      public DateTimeComboPickerI18n setTimeTab(String timeTab)
      Sets the label of the Time tab in the tabbed fullscreen layout (see DateTimeComboPicker.setMobileTabs(boolean)).
      Parameters:
      timeTab - the label
      Returns:
      this instance for method chaining
    • getHours

      public String getHours()
      Gets the accessible label of the hours column.
      Returns:
      the label, or null for the default
    • setHours

      public DateTimeComboPickerI18n setHours(String hours)
      Sets the accessible label of the hours column.
      Parameters:
      hours - the label
      Returns:
      this instance for method chaining
    • getMinutes

      public String getMinutes()
      Gets the accessible label of the minutes column.
      Returns:
      the label, or null for the default
    • setMinutes

      public DateTimeComboPickerI18n setMinutes(String minutes)
      Sets the accessible label of the minutes column.
      Parameters:
      minutes - the label
      Returns:
      this instance for method chaining
    • getSeconds

      public String getSeconds()
      Gets the accessible label of the seconds column.
      Returns:
      the label, or null for the default
    • setSeconds

      public DateTimeComboPickerI18n setSeconds(String seconds)
      Sets the accessible label of the seconds column.
      Parameters:
      seconds - the label
      Returns:
      this instance for method chaining
    • getMeridiem

      public String getMeridiem()
      Gets the accessible label of the AM/PM column.
      Returns:
      the label, or null for the default
    • setMeridiem

      public DateTimeComboPickerI18n setMeridiem(String meridiem)
      Sets the accessible label of the AM/PM column.
      Parameters:
      meridiem - the label
      Returns:
      this instance for method chaining
    • getAm

      public String getAm()
      Gets the AM marker text.
      Returns:
      the text, or null for the default
    • setAm

      public DateTimeComboPickerI18n setAm(String am)
      Sets the AM marker text shown in the AM/PM column.
      Parameters:
      am - the text
      Returns:
      this instance for method chaining
    • getPm

      public String getPm()
      Gets the PM marker text.
      Returns:
      the text, or null for the default
    • setPm

      public DateTimeComboPickerI18n setPm(String pm)
      Sets the PM marker text shown in the AM/PM column.
      Parameters:
      pm - the text
      Returns:
      this instance for method chaining
    • getBadInputErrorMessage

      public String getBadInputErrorMessage()
      Gets the error message shown when the typed text does not match the format pattern.
      Returns:
      the message, or null to use the generic error message
    • setBadInputErrorMessage

      public DateTimeComboPickerI18n setBadInputErrorMessage(String badInputErrorMessage)
      Sets the error message shown when the typed text does not match the format pattern. When not set, the generic error message is used.
      Parameters:
      badInputErrorMessage - the message
      Returns:
      this instance for method chaining
    • getRequiredErrorMessage

      public String getRequiredErrorMessage()
      Gets the error message shown when a required field is left empty.
      Returns:
      the message, or null to use the generic error message
    • setRequiredErrorMessage

      public DateTimeComboPickerI18n setRequiredErrorMessage(String requiredErrorMessage)
      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

      public String getMinErrorMessage()
      Gets the error message shown when the value is earlier than the minimum.
      Returns:
      the message, or null to use the generic error message
    • setMinErrorMessage

      public DateTimeComboPickerI18n setMinErrorMessage(String minErrorMessage)
      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

      public String getMaxErrorMessage()
      Gets the error message shown when the value is later than the maximum.
      Returns:
      the message, or null to use the generic error message
    • setMaxErrorMessage

      public DateTimeComboPickerI18n setMaxErrorMessage(String maxErrorMessage)
      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

      public String getDateDisabledErrorMessage()
      Gets the error message shown when the value's date is disabled via DateTimeComboPicker.setDateDisabledFunction(String).
      Returns:
      the message, or null to use the generic error message
    • setDateDisabledErrorMessage

      public DateTimeComboPickerI18n setDateDisabledErrorMessage(String dateDisabledErrorMessage)
      Sets the error message shown when the value's date is disabled via DateTimeComboPicker.setDateDisabledFunction(String). When not set, the generic error message is used.
      Parameters:
      dateDisabledErrorMessage - the message
      Returns:
      this instance for method chaining