public class LocaleService extends Object
Constructor and Description |
---|
LocaleService() |
Modifier and Type | Method and Description |
---|---|
static void |
addLocale(UIState.LocaleData localeData) |
static void |
addLocales(List<UIState.LocaleData> localeDatas) |
static String[] |
getAmPmStrings(String locale) |
static Set<String> |
getAvailableLocales() |
static String |
getClockDelimiter(String locale) |
static String |
getDateFormat(String locale) |
static String[] |
getDayNames(String locale) |
static String |
getDefaultLocale() |
static int |
getFirstDayOfWeek(String locale) |
static String[] |
getMonthNames(String locale) |
static String[] |
getShortDayNames(String locale) |
static String[] |
getShortMonthNames(String locale) |
static boolean |
isTwelveHourClock(String locale) |
static void |
setDefaultLocale(String locale) |
public static void addLocale(UIState.LocaleData localeData)
public static void setDefaultLocale(String locale)
public static String getDefaultLocale()
public static String[] getMonthNames(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static String[] getShortMonthNames(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static String[] getDayNames(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static String[] getShortDayNames(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static int getFirstDayOfWeek(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static String getDateFormat(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static boolean isTwelveHourClock(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static String getClockDelimiter(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static String[] getAmPmStrings(String locale) throws LocaleNotLoadedException
LocaleNotLoadedException
public static void addLocales(List<UIState.LocaleData> localeDatas)
Copyright © 2019 Vaadin Ltd. All rights reserved.