public class

LocaleInfoImpl

extends Object
java.lang.Object
   ↳ com.google.gwt.i18n.client.impl.LocaleInfoImpl

Class Overview

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

Summary

Public Constructors
LocaleInfoImpl()
Public Methods
String[] getAvailableLocaleNames()
Returns an array of available locale names.
DateTimeFormatInfo getDateTimeFormatInfo()
Create a DateTimeFormatInfo instance appropriate for this locale.
String getLocaleCookieName()
Returns the name of the name of the cookie holding the locale to use, which is defined in the config property locale.cookie.
String getLocaleName()
Returns the current locale name, such as "default, "en_US", etc.
String getLocaleNativeDisplayName(String localeName)
Returns the display name of the requested locale in its native locale, if possible.
String getLocaleQueryParam()
Returns the name of the query parameter holding the locale to use, which is defined in the config property locale.queryparam.
LocalizedNames getLocalizedNames()
NumberConstants getNumberConstants()
Returns a NumberConstants instance appropriate for this locale.
boolean hasAnyRTL()
Returns true if any locale supported by this build of the app is RTL.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LocaleInfoImpl ()

Public Methods

public String[] getAvailableLocaleNames ()

Returns an array of available locale names.

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

public String getLocaleCookieName ()

Returns the name of the name of the cookie holding the locale to use, which is defined in the config property locale.cookie.

Returns
  • locale cookie name, or null if none

public String getLocaleName ()

Returns the current locale name, such as "default, "en_US", etc.

public String getLocaleNativeDisplayName (String localeName)

Returns 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

public String getLocaleQueryParam ()

Returns the name of the query parameter holding the locale to use, which is defined in the config property locale.queryparam.

Returns
  • locale URL query parameter name, or null if none

public LocalizedNames getLocalizedNames ()

Returns

public NumberConstants getNumberConstants ()

Returns a NumberConstants instance appropriate for this locale.

public boolean hasAnyRTL ()

Returns true if any locale supported by this build of the app is RTL.