com.itmill.toolkit.terminal.gwt.client
Class LocaleService
java.lang.Object
com.itmill.toolkit.terminal.gwt.client.LocaleService
public class LocaleService
- extends Object
Date / time etc. localisation service for all widgets. Caches all loaded
locales as JSONObjects.
- Author:
- IT Mill 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.google.gwt.json.client.JSONObject json)
setDefaultLocale
public static void setDefaultLocale(String locale)
getDefaultLocale
public static String getDefaultLocale()
getAvailableLocales
public static Set getAvailableLocales()
getMonthNames
public static String[] getMonthNames(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getShortMonthNames
public static String[] getShortMonthNames(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getDayNames
public static String[] getDayNames(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getShortDayNames
public static String[] getShortDayNames(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getFirstDayOfWeek
public static int getFirstDayOfWeek(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getDateFormat
public static String getDateFormat(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
isTwelveHourClock
public static boolean isTwelveHourClock(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getClockDelimiter
public static String getClockDelimiter(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
getAmPmStrings
public static String[] getAmPmStrings(String locale)
throws LocaleNotLoadedException
- Throws:
LocaleNotLoadedException
Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.