Package | Description |
---|---|
com.google.gwt.core.server | |
com.google.gwt.i18n.server |
This package contains server-side i18n classes and interfaces.
|
com.google.gwt.i18n.server.impl | |
com.google.gwt.i18n.shared |
This package contains i18n classes and interfaces shared between client and
server.
|
javax.validation |
Modifier and Type | Method and Description |
---|---|
static GwtLocale |
ServerGwtBridge.getLocale(ServerGwtBridge.Properties properties) |
Modifier and Type | Class and Description |
---|---|
class |
GwtLocaleImpl
Class representing GWT locales and conversion to/from other formats.
|
Modifier and Type | Method and Description |
---|---|
GwtLocale |
GwtLocaleFactoryImpl.fromComponents(String language,
String script,
String region,
String variant) |
GwtLocale |
GwtLocaleFactoryImpl.fromString(String localeName) |
GwtLocale |
GwtLocaleImpl.getCanonicalForm()
Returns this locale in canonical form.
|
GwtLocale |
GwtLocaleFactoryImpl.getDefault() |
protected GwtLocale |
AbstractMessage.getDefaultLocale() |
GwtLocale |
MessageTranslation.getMatchedLocale()
Get the locale for this translation.
|
GwtLocale |
AbstractMessage.getMatchedLocale() |
Modifier and Type | Method and Description |
---|---|
List<GwtLocale> |
GwtLocaleImpl.getAliases() |
List<GwtLocale> |
GwtLocaleImpl.getCompleteSearchList() |
List<GwtLocale> |
GwtLocaleImpl.getInheritanceChain()
Return a list of locales to search for, in order of preference.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageInterface.accept(MessageInterfaceVisitor cv,
GwtLocale locale)
Visit this class and all messages within it.
|
void |
AbstractMessageInterface.accept(MessageInterfaceVisitor cv,
GwtLocale locale) |
void |
AbstractMessage.accept(MessageVisitor mv,
GwtLocale locale) |
void |
Message.accept(MessageVisitor v,
GwtLocale locale)
Accept a
MessageVisitor , using translations from the requested
locale. |
int |
GwtLocaleImpl.compareTo(GwtLocale o) |
static PluralRule |
AbstractParameter.getLocalizedPluralRule(Class<? extends PluralRule> pluralClass,
GwtLocale locale)
Instantiate a plural rule class.
|
abstract MessageTranslation |
AbstractMessage.getTranslation(GwtLocale locale) |
MessageTranslation |
Message.getTranslation(GwtLocale locale)
Get an appropriate translation for this message for a given locale.
|
boolean |
GwtLocaleImpl.inheritsFrom(GwtLocale parent)
Return true if this locale inherits from the specified locale.
|
boolean |
GwtLocaleImpl.usesSameScript(GwtLocale other)
Checks if this locale uses the same script as another locale, taking into
account default scripts.
|
void |
MessageInterfaceVisitor.visitMessageInterface(MessageInterface msgIntf,
GwtLocale sourceLocale)
Called at the start of processing a new message interface.
|
void |
DefaultVisitor.visitMessageInterface(MessageInterface msgIntf,
GwtLocale sourceLocale) |
Modifier and Type | Method and Description |
---|---|
MessageTranslation |
ReflectionMessage.getTranslation(GwtLocale locale) |
Modifier and Type | Method and Description |
---|---|
GwtLocale |
GwtLocaleFactory.fromComponents(String language,
String script,
String region,
String variant)
Construct a GWT locale from its component parts.
|
GwtLocale |
GwtLocaleFactory.fromString(String localeName)
Get a GWT locale from a string conforming to a subset of BCP47
(specifically assuming extension tags are not present, at most
one variant is present, and grandfathered tags are not supported;
also private-use tags are only supported for the entire tag).
|
GwtLocale |
GwtLocale.getCanonicalForm()
Returns this locale in canonical form.
|
GwtLocale |
GwtLocaleFactory.getDefault()
Returns an instance of the default locale.
|
Modifier and Type | Method and Description |
---|---|
List<GwtLocale> |
GwtLocale.getAliases()
Returns the list of aliases for this locale.
|
List<GwtLocale> |
GwtLocale.getCompleteSearchList()
Returns the complete list of locales to search for the current locale.
|
List<GwtLocale> |
GwtLocale.getInheritanceChain()
Returns a list of locales to search for, in order of preference.
|
Modifier and Type | Method and Description |
---|---|
int |
GwtLocale.compareTo(GwtLocale o)
The default comparison is a lexical ordering.
|
boolean |
GwtLocale.inheritsFrom(GwtLocale parent)
Returns true if this locale inherits from the specified locale.
|
boolean |
GwtLocale.usesSameScript(GwtLocale other)
Checks if this locale uses the same script as another locale.
|
Modifier and Type | Method and Description |
---|---|
String |
MessageInterpolator.interpolate(String messageTemplate,
MessageInterpolator.Context context,
GwtLocale locale)
Interpolate the message template based on the contraint validation context.
|
Copyright © 2018. All rights reserved.