Class SuperDatePickerI18n
java.lang.Object
com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n
org.vaadin.miki.superfields.dates.SuperDatePickerI18n
- All Implemented Interfaces:
Serializable,HasLocale
public final class SuperDatePickerI18n
extends com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n
implements HasLocale
A locale-powered
DatePicker.DatePickerI18n.- Since:
- 2020-04-09
- Author:
- miki
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the i18n data based on defaultLocale.SuperDatePickerI18n(Locale locale) Creates the i18n data based on givenLocale. -
Method Summary
Modifier and TypeMethodDescriptionReturns current month names for displaying as user formatted month name.Returns locale associated with this object.com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18nsetDateFormat(String dateFormat) com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18nsetDateFormats(String primaryFormat, String... additionalParsingFormats) com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18nsetDisplayMonthNames(List<String> displayMonthNames) Controls the month names used for displaying and typing in by the user.voidSets new locale for this object.Methods inherited from class com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n
getCancel, getDateFormats, getFirstDayOfWeek, getMonthNames, getReferenceDate, getToday, getWeekdays, getWeekdaysShort, setCancel, setFirstDayOfWeek, setMonthNames, setReferenceDate, setToday, setWeekdays, setWeekdaysShort
-
Constructor Details
-
Method Details
-
setDisplayMonthNames
public com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n setDisplayMonthNames(List<String> displayMonthNames) Controls the month names used for displaying and typing in by the user.- Parameters:
displayMonthNames- Names of months. If empty ornull,DatePicker.DatePickerI18n.getMonthNames()will be used.- Returns:
- This.
-
getDisplayMonthNames
Returns current month names for displaying as user formatted month name.- Returns:
- A list of 12 month names (from January to December).
-
setLocale
Description copied from interface:HasLocaleSets new locale for this object. -
getLocale
Description copied from interface:HasLocaleReturns locale associated with this object. -
setDateFormat
public com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n setDateFormat(String dateFormat) - Overrides:
setDateFormatin classcom.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n
-
setDateFormats
public com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n setDateFormats(String primaryFormat, String... additionalParsingFormats) - Overrides:
setDateFormatsin classcom.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n
-