Package com.google.gwt.i18n.client
Class DefaultLocalizedNames
java.lang.Object
com.google.gwt.i18n.client.DefaultLocalizedNamesBase
com.google.gwt.i18n.client.DefaultLocalizedNames
- All Implemented Interfaces:
LocalizedNames
Default LocalizedNames implementation.
-
Field Summary
Fields inherited from class com.google.gwt.i18n.client.DefaultLocalizedNamesBase
likelyRegionCodes, namesMap, sortedRegionCodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Initializes {DefaultLocalizedNamesBase.namesMap
to a map of region code (including non-country codes) to localized names.String[]
Returns an array of currently valid country codes ordered by the collating order of the locale.Methods inherited from class com.google.gwt.i18n.client.DefaultLocalizedNamesBase
getLikelyRegionCodes, getRegionName, getRegionNameImpl, getSortedRegionCodes, loadLikelyRegionCodes, needsNameMap
-
Constructor Details
-
DefaultLocalizedNames
public DefaultLocalizedNames()
-
-
Method Details
-
loadNameMap
protected void loadNameMap()Description copied from class:DefaultLocalizedNamesBase
Initializes {DefaultLocalizedNamesBase.namesMap
to a map of region code (including non-country codes) to localized names. Subclasses should generally call the parent implementation and then change specific entries, though if most entries are being changed they can just create their own map.- Overrides:
loadNameMap
in classDefaultLocalizedNamesBase
-
loadSortedRegionCodes
Description copied from class:DefaultLocalizedNamesBase
Returns an array of currently valid country codes ordered by the collating order of the locale.- Specified by:
loadSortedRegionCodes
in classDefaultLocalizedNamesBase
- Returns:
- an array of ordered country codes
-