|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.i18n.client.DefaultLocalizedNamesBase
public abstract class DefaultLocalizedNamesBase
Base class of DefaultLocalizedNames
, used just to isolate all
hand-written code here from all generated code.
Field Summary | |
---|---|
protected java.lang.String[] |
likelyRegionCodes
|
protected java.util.Map<java.lang.String,java.lang.String> |
namesMap
|
protected java.lang.String[] |
sortedRegionCodes
|
Constructor Summary | |
---|---|
DefaultLocalizedNamesBase()
|
Method Summary | |
---|---|
java.lang.String[] |
getLikelyRegionCodes()
|
java.lang.String |
getRegionName(java.lang.String regionCode)
Get the localized name of a given region in this locale. |
protected java.lang.String |
getRegionNameImpl(java.lang.String regionCode)
|
java.lang.String[] |
getSortedRegionCodes()
|
protected java.lang.String[] |
loadLikelyRegionCodes()
Returns a possibly-empty array of country codes, ordered by the literate population speaking this language. |
protected void |
loadNameMap()
Initializes { namesMap to a map of region code (including
non-country codes) to localized names. |
protected abstract java.lang.String[] |
loadSortedRegionCodes()
Returns an array of currently valid country codes ordered by the collating order of the locale. |
protected boolean |
needsNameMap()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] likelyRegionCodes
protected java.lang.String[] sortedRegionCodes
protected java.util.Map<java.lang.String,java.lang.String> namesMap
Constructor Detail |
---|
public DefaultLocalizedNamesBase()
Method Detail |
---|
public final java.lang.String[] getLikelyRegionCodes()
getLikelyRegionCodes
in interface LocalizedNames
public final java.lang.String getRegionName(java.lang.String regionCode)
LocalizedNames
getRegionName
in interface LocalizedNames
public final java.lang.String[] getSortedRegionCodes()
getSortedRegionCodes
in interface LocalizedNames
protected java.lang.String getRegionNameImpl(java.lang.String regionCode)
protected java.lang.String[] loadLikelyRegionCodes()
protected void loadNameMap()
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.
protected abstract java.lang.String[] loadSortedRegionCodes()
protected boolean needsNameMap()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |