Package io.jmix.flowui.component
Class DateInternationalizationHelper
java.lang.Object
io.jmix.flowui.component.DateInternationalizationHelper
Utility class for internationalizing date-related information such as month names,
weekday names, short weekday names, and the first day of the week.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getFirstDayOfWeek
(Locale locale) Returns the first day of the week in the specified locale.getMonthNames
(Locale locale) Returns a list of full month names for stand-alone use in the specified locale.getShortWeekdayNames
(Locale locale) Returns a list of short weekday names in the specified locale.getWeekdayNames
(Locale locale) Returns a list of weekday names in the specified locale.
-
Constructor Details
-
DateInternationalizationHelper
public DateInternationalizationHelper()
-
-
Method Details
-
getMonthNames
Returns a list of full month names for stand-alone use in the specified locale.- Parameters:
locale
- the locale for which to retrieve month names- Returns:
- a list of full month names
-
getWeekdayNames
Returns a list of weekday names in the specified locale.- Parameters:
locale
- the locale for which to retrieve weekday names- Returns:
- a list of weekday names
-
getShortWeekdayNames
Returns a list of short weekday names in the specified locale.- Parameters:
locale
- the locale for which to retrieve short weekday names- Returns:
- a list of short weekday names
-
getFirstDayOfWeek
Returns the first day of the week in the specified locale.- Parameters:
locale
- the locale for which to retrieve the first day of the week- Returns:
- the first day of the week as an integer (e.g., Calendar.SUNDAY)
-