Class RecurrentScheduleFieldI18n
java.lang.Object
com.flowingcode.vaadin.addons.recurrentschedulefield.ui.RecurrentScheduleFieldI18n
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets current date pickers' placeholder.Gets current date pickers' title.Gets current week days picker's initials.Gets current days filter chips' text.Gets current days picker's title.Gets current time filter chips' text.Gets current time pickers' placeholder.Gets current time pickers' title.setDatesPlaceholder(String startDate, String endDate) Sets the date pickers' placeholder.setDatesTitle(String text) Sets the date pickers' title.setDayInitials(List<String> initials) Sets the week days picker's initials.setDaysChipsText(String weekend, String weekdays, String all) Sets the days filter chips' text.setDaysTitle(String text) Sets the days picker's title.setTimeChipsText(String morning, String afternoon, String all) Sets the time filter chips' text.setTimesPlaceholder(String startTime, String endTime) Sets the time pickers' placeholder.setTimesTitle(String text) Sets the time pickers' title.
-
Constructor Details
-
RecurrentScheduleFieldI18n
public RecurrentScheduleFieldI18n()
-
-
Method Details
-
setDatesTitle
Sets the date pickers' title.- Parameters:
text- title for the pickers
-
getDatesTitle
Gets current date pickers' title.- Returns:
- date pickers' title or
nullif this object is not attached to aRecurrentScheduleFieldinstance
-
setDaysTitle
Sets the days picker's title.- Parameters:
text- title for the days picker
-
getDaysTitle
Gets current days picker's title.- Returns:
- days picker's title or
nullif this object is not attached to aRecurrentScheduleFieldinstance
-
setTimesTitle
Sets the time pickers' title.- Parameters:
text- title for the pickers
-
getTimesTitle
Gets current time pickers' title.- Returns:
- time pickers' title or
nullif this object is not attached to aRecurrentScheduleFieldinstance
-
setTimesPlaceholder
Sets the time pickers' placeholder.- Parameters:
startTime- placeholder for the start-time pickerendTime- placeholder for the end-time picker
-
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
nullif this object is not attached to aRecurrentScheduleFieldinstance
-
setDatesPlaceholder
Sets the date pickers' placeholder.- Parameters:
startDate- placeholder for the start-date pickerendDate- placeholder for the end-date picker
-
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
nullif this object is not attached to aRecurrentScheduleFieldinstance
-
setDayInitials
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
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
nullif this object is not attached to aRecurrentScheduleFieldinstance - See Also:
-
setTimeChipsText
Sets the time filter chips' text.- Parameters:
morning- text for the morning-only chipafternoon- text for the afternoon-only chipall- text for the all-day chip
-
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
nullif this object is not attached to aRecurrentScheduleFieldinstance
-
setDaysChipsText
Sets the days filter chips' text.- Parameters:
weekdays- text for the monday-to-friday chipweekend- text for the weekends-only chipall- text for the all days chip
-
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
nullif this object is not attached to aRecurrentScheduleFieldinstance
-