|
GWT 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.i18n.client.LocaleInfo
public class LocaleInfo
Provides access to the currently-active locale and the list of available locales.
Constructor Summary | |
---|---|
protected |
LocaleInfo()
Constructor to be used by subclasses, such as mock classes for testing. |
Method Summary | |
---|---|
static java.lang.String[] |
getAvailableLocaleNames()
Returns an array of available locale names. |
static LocaleInfo |
getCurrentLocale()
Returns a LocaleInfo instance for the current locale. |
DateTimeConstants |
getDateTimeConstants()
Returns a DateTimeConstants instance for this locale. |
DateTimeFormatInfo |
getDateTimeFormatInfo()
Returns a DateTimeConstants instance for this locale. |
java.lang.String |
getLocaleName()
Returns the name of this locale, such as "default, "en_US", etc. |
static java.lang.String |
getLocaleNativeDisplayName(java.lang.String localeName)
Returns the display name of the requested locale in its native locale, if possible. |
NumberConstants |
getNumberConstants()
Returns a NumberConstants instance for this locale. |
static boolean |
hasAnyRTL()
Returns true if any locale supported by this build of the app is RTL. |
boolean |
isRTL()
Returns true if this locale is right-to-left instead of left-to-right. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LocaleInfo()
Method Detail |
---|
public static final java.lang.String[] getAvailableLocaleNames()
public static final LocaleInfo getCurrentLocale()
public static java.lang.String getLocaleNativeDisplayName(java.lang.String localeName)
localeName
- the name of the locale to lookup.
public static boolean hasAnyRTL()
public final DateTimeConstants getDateTimeConstants()
public final DateTimeFormatInfo getDateTimeFormatInfo()
public final java.lang.String getLocaleName()
public final NumberConstants getNumberConstants()
public final boolean isRTL()
|
GWT 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |