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-poweredDatePicker.DatePickerI18n.- Since:
- 2020-04-09
- Author:
- miki
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuperDatePickerI18n()Creates the i18n data based on defaultLocale.SuperDatePickerI18n(Locale locale)Creates the i18n data based on givenLocale.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getDisplayMonthNames()Returns current month names for displaying as user formatted month name.LocalegetLocale()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.voidsetLocale(Locale locale)Sets new locale for this object.-
Methods inherited from class com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n
getCalendar, getCancel, getClear, getDateFormats, getFirstDayOfWeek, getMonthNames, getReferenceDate, getToday, getWeek, getWeekdays, getWeekdaysShort, setCalendar, setCancel, setClear, setFirstDayOfWeek, setMonthNames, setReferenceDate, setToday, setWeek, setWeekdays, setWeekdaysShort
-
-
-
-
Method Detail
-
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
public List<String> getDisplayMonthNames()
Returns current month names for displaying as user formatted month name.- Returns:
- A list of 12 month names (from January to December).
-
setLocale
public void setLocale(Locale locale)
Description copied from interface:HasLocaleSets new locale for this object.
-
getLocale
public Locale 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
-
-