We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.client.
Class LocaleService
- java.lang.Object
-
- com.vaadin.client.LocaleService
-
public class LocaleService extends Object
Date / time etc. localization service for all widgets. Caches all loaded locales as JSONObjects.
Author:
Vaadin Ltd.
-
-
Constructor Summary
Constructors Constructor Description LocaleService()
-
Method Summary
All Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
addLocale
public static void addLocale(UIState.LocaleData localeData)
-
setDefaultLocale
public static void setDefaultLocale(String locale)
-
getDefaultLocale
public static String getDefaultLocale()
-
getMonthNames
public static String[] getMonthNames(String locale) throws LocaleNotLoadedException
Throws:
-
getShortMonthNames
public static String[] getShortMonthNames(String locale) throws LocaleNotLoadedException
Throws:
-
getDayNames
public static String[] getDayNames(String locale) throws LocaleNotLoadedException
Throws:
-
getShortDayNames
public static String[] getShortDayNames(String locale) throws LocaleNotLoadedException
Throws:
-
getFirstDayOfWeek
public static int getFirstDayOfWeek(String locale) throws LocaleNotLoadedException
Throws:
-
getDateFormat
public static String getDateFormat(String locale) throws LocaleNotLoadedException
Throws:
-
isTwelveHourClock
public static boolean isTwelveHourClock(String locale) throws LocaleNotLoadedException
Throws:
-
getClockDelimiter
public static String getClockDelimiter(String locale) throws LocaleNotLoadedException
Throws:
-
getAmPmStrings
public static String[] getAmPmStrings(String locale) throws LocaleNotLoadedException
Throws:
-
addLocales
public static void addLocales(List<UIState.LocaleData> localeDatas)
-
-