com.google.gwt.i18n.client.impl
Class LocaleInfoImpl
java.lang.Object
com.google.gwt.i18n.client.impl.LocaleInfoImpl
public class LocaleInfoImpl
- extends java.lang.Object
Implementation detail of LocaleInfo -- not a public API and subject to
change.
Generated interface for locale information. The default implementation
returns null, which is used if the i18n module is not imported.
- See Also:
LocaleInfo
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleInfoImpl
public LocaleInfoImpl()
getAvailableLocaleNames
public java.lang.String[] getAvailableLocaleNames()
- Returns:
- an array of available locale names
getDateTimeFormatInfo
public DateTimeFormatInfo getDateTimeFormatInfo()
- Create a
DateTimeFormatInfo instance appropriate for this locale.
Note that the caller takes care of any caching so subclasses need not
bother.
- Returns:
- a
DateTimeFormatInfo instance
getLocaleName
public java.lang.String getLocaleName()
- Returns:
- the current locale name, such as "default, "en_US", etc.
getLocaleNativeDisplayName
public java.lang.String getLocaleNativeDisplayName(java.lang.String localeName)
- Return the display name of the requested locale in its native locale, if
possible. If no native localization is available, the English name will
be returned, or as a last resort just the locale name will be returned. If
the locale name is unknown (including user overrides), null is returned.
- Parameters:
localeName - the name of the locale to lookup.
- Returns:
- the name of the locale in its native locale
getNumberConstants
public NumberConstants getNumberConstants()
- Returns:
- a NumberConstants instance appropriate for this locale.
hasAnyRTL
public boolean hasAnyRTL()
- Returns:
- true if any locale supported by this build of the app is RTL.