com.vaadin.client
Class LocaleService
java.lang.Object
com.vaadin.client.LocaleService
public class LocaleService
- extends java.lang.Object
Date / time etc. localisation service for all widgets. Caches all loaded
locales as JSONObjects.
- Author:
- Vaadin Ltd.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleService
public LocaleService()
addLocale
public static void addLocale(com.vaadin.shared.ui.ui.UIState.LocaleData localeData)
setDefaultLocale
public static void setDefaultLocale(java.lang.String locale)
getDefaultLocale
public static java.lang.String getDefaultLocale()
getAvailableLocales
public static java.util.Set<java.lang.String> getAvailableLocales()
getMonthNames
public static java.lang.String[] getMonthNames(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getShortMonthNames
public static java.lang.String[] getShortMonthNames(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getDayNames
public static java.lang.String[] getDayNames(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getShortDayNames
public static java.lang.String[] getShortDayNames(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getFirstDayOfWeek
public static int getFirstDayOfWeek(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getDateFormat
public static java.lang.String getDateFormat(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
isTwelveHourClock
public static boolean isTwelveHourClock(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getClockDelimiter
public static java.lang.String getClockDelimiter(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getAmPmStrings
public static java.lang.String[] getAmPmStrings(java.lang.String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
addLocales
public static void addLocales(java.util.List<com.vaadin.shared.ui.ui.UIState.LocaleData> localeDatas)
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.