Package com.vaadin.componentfactory
Class EnhancedDateRangePicker.DatePickerI18n
java.lang.Object
com.vaadin.componentfactory.EnhancedDateRangePicker.DatePickerI18n
- All Implemented Interfaces:
Serializable
- Enclosing class:
EnhancedDateRangePicker
The internationalization properties for
EnhancedDateRangePicker.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the translated word forcalendar.Gets the translated word forcancel.getClear()Gets the translated word forclear.intGets the first day of the week.Gets the name of the months.getToday()Gets the translated word fortoday.getWeek()Gets the translated word forweek.Gets the name of the week days.Gets the short names of the week days.setCalendar(String calendar) Sets the translated word forcalendar.Sets the translated word forcancel.Sets the translated word forclear.setFirstDayOfWeek(int firstDayOfWeek) Sets the first day of the week.setLastMonth(String lastMonth) setLastWeek(String lastWeek) setLastYear(String lastYear) setMonthNames(List<String> monthNames) Sets the name of the months, starting from January and ending on December.setThisMonth(String thisMonth) setThisWeek(String thisWeek) setThisYear(String thisYear) Sets the translated word fortoday.Sets the translated word forweek.setWeekdays(List<String> weekdays) Sets the name of the week days, starting fromSundayand ending onSaturday.setWeekdaysShort(List<String> weekdaysShort) Sets the short names of the week days, starting fromsunand ending onsat.setYesterday(String yesterday)
-
Constructor Details
-
DatePickerI18n
public DatePickerI18n()
-
-
Method Details
-
getMonthNames
Gets the name of the months.- Returns:
- the month names
-
getLastYear
-
setLastYear
-
getThisYear
-
setThisYear
-
getLastMonth
-
setLastMonth
-
getThisMonth
-
setThisMonth
-
getLastWeek
-
setLastWeek
-
getThisWeek
-
setThisWeek
-
getYesterday
-
setYesterday
-
setMonthNames
Sets the name of the months, starting from January and ending on December.- Parameters:
monthNames- the month names- Returns:
- this instance for method chaining
-
getWeekdays
Gets the name of the week days.- Returns:
- the week days
-
setWeekdays
Sets the name of the week days, starting fromSundayand ending onSaturday.- Parameters:
weekdays- the week days names- Returns:
- this instance for method chaining
-
getWeekdaysShort
Gets the short names of the week days.- Returns:
- the short names of the week days
-
setWeekdaysShort
Sets the short names of the week days, starting fromsunand ending onsat.- Parameters:
weekdaysShort- the short names of the week days- Returns:
- this instance for method chaining
-
getFirstDayOfWeek
public int getFirstDayOfWeek()Gets the first day of the week.0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, 4 for Thursday, 5 for Friday, 6 for Saturday.
- Returns:
- the index of the first day of the week
-
setFirstDayOfWeek
Sets the first day of the week.0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, 4 for Thursday, 5 for Friday, 6 for Saturday.
- Parameters:
firstDayOfWeek- the index of the first day of the week- Returns:
- this instance for method chaining
-
getWeek
Gets the translated word forweek.- Returns:
- the translated word for week
-
setWeek
Sets the translated word forweek.- Parameters:
week- the translated word for week- Returns:
- this instance for method chaining
-
getCalendar
Gets the translated word forcalendar.- Returns:
- the translated word for calendar
-
setCalendar
Sets the translated word forcalendar.- Parameters:
calendar- the translated word for calendar- Returns:
- this instance for method chaining
-
getClear
Gets the translated word forclear.- Returns:
- the translated word for clear
-
setClear
Sets the translated word forclear.- Parameters:
clear- the translated word for clear- Returns:
- this instance for method chaining
-
getToday
Gets the translated word fortoday.- Returns:
- the translated word for today
-
setToday
Sets the translated word fortoday.- Parameters:
today- the translated word for today- Returns:
- this instance for method chaining
-
getCancel
Gets the translated word forcancel.- Returns:
- the translated word for cancel
-
setCancel
Sets the translated word forcancel.- Parameters:
cancel- the translated word for cancel- Returns:
- this instance for method chaining
-