Class RecurrentScheduleFieldI18n

java.lang.Object
com.flowingcode.vaadin.addons.recurrentschedulefield.ui.RecurrentScheduleFieldI18n
All Implemented Interfaces:
Serializable

public class RecurrentScheduleFieldI18n extends Object implements Serializable
Provides internationalization support for RecurrentScheduleField.
Features:
  • Set and retrieve titles for date, day, and time pickers.
  • Configure placeholders for date and time pickers.
  • Customize day initials and filter chip texts for days and times.
Author:
Flowing Code
See Also:
  • Constructor Details

    • RecurrentScheduleFieldI18n

      public RecurrentScheduleFieldI18n()
  • Method Details

    • setDatesTitle

      public RecurrentScheduleFieldI18n setDatesTitle(String text)
      Sets the date pickers' title.
      Parameters:
      text - title for the pickers
    • getDatesTitle

      public String getDatesTitle()
      Gets current date pickers' title.
      Returns:
      date pickers' title or null if this object is not attached to a RecurrentScheduleField instance
    • setDaysTitle

      public RecurrentScheduleFieldI18n setDaysTitle(String text)
      Sets the days picker's title.
      Parameters:
      text - title for the days picker
    • getDaysTitle

      public String getDaysTitle()
      Gets current days picker's title.
      Returns:
      days picker's title or null if this object is not attached to a RecurrentScheduleField instance
    • setTimesTitle

      public RecurrentScheduleFieldI18n setTimesTitle(String text)
      Sets the time pickers' title.
      Parameters:
      text - title for the pickers
    • getTimesTitle

      public String getTimesTitle()
      Gets current time pickers' title.
      Returns:
      time pickers' title or null if this object is not attached to a RecurrentScheduleField instance
    • setTimesPlaceholder

      public RecurrentScheduleFieldI18n setTimesPlaceholder(String startTime, String endTime)
      Sets the time pickers' placeholder.
      Parameters:
      startTime - placeholder for the start-time picker
      endTime - placeholder for the end-time picker
    • getTimesPlaceholder

      public List<String> getTimesPlaceholder()
      Gets current time pickers' placeholder.
      Returns:
      a list where the first element corresponds to the start-time picker's placeholder and the second to the end-time picker's placeholder

      null if this object is not attached to a RecurrentScheduleField instance
    • setDatesPlaceholder

      public RecurrentScheduleFieldI18n setDatesPlaceholder(String startDate, String endDate)
      Sets the date pickers' placeholder.
      Parameters:
      startDate - placeholder for the start-date picker
      endDate - placeholder for the end-date picker
    • getDatesPlaceholder

      public List<String> getDatesPlaceholder()
      Gets current date pickers' placeholder.
      Returns:
      a list where the first element corresponds to the start-date picker's placeholder and the second to the end-date picker's placeholder

      null if this object is not attached to a RecurrentScheduleField instance
    • setDayInitials

      public RecurrentScheduleFieldI18n setDayInitials(List<String> initials)
      Sets the week days picker's initials.
      Parameters:
      initials - a list of initials for the 7 days of the week
      The order of each depends on the order set on the picker
      See Also:
    • getDayInitials

      public List<String> getDayInitials()
      Gets current week days picker's initials.
      Returns:
      a list of initials for the 7 days of the week. The order of each depends on the order set on the picker

      null if this object is not attached to a RecurrentScheduleField instance
      See Also:
    • setTimeChipsText

      public RecurrentScheduleFieldI18n setTimeChipsText(String morning, String afternoon, String all)
      Sets the time filter chips' text.
      Parameters:
      morning - text for the morning-only chip
      afternoon - text for the afternoon-only chip
      all - text for the all-day chip
    • getTimeChipsText

      public List<String> getTimeChipsText()
      Gets current time filter chips' text.
      Returns:
      a list where the first element corresponds to the morning-only chip's text, the second to the afternoon-only chip's text and the third to the all-day chip's text

      null if this object is not attached to a RecurrentScheduleField instance
    • setDaysChipsText

      public RecurrentScheduleFieldI18n setDaysChipsText(String weekend, String weekdays, String all)
      Sets the days filter chips' text.
      Parameters:
      weekdays - text for the monday-to-friday chip
      weekend - text for the weekends-only chip
      all - text for the all days chip
    • getDaysChipsText

      public List<String> getDaysChipsText()
      Gets current days filter chips' text.
      Returns:
      a list where the first element corresponds to the monday-to-friday chip's text, the second to the weekends-only chip's text and the third to the all-days chip's text

      null if this object is not attached to a RecurrentScheduleField instance