public abstract class

LocalizedNamesImplBase

extends DefaultLocalizedNames
implements Localizable
java.lang.Object
   ↳ com.google.gwt.i18n.client.DefaultLocalizedNamesBase
     ↳ com.google.gwt.i18n.client.DefaultLocalizedNames
       ↳ com.google.gwt.i18n.client.impl.cldr.LocalizedNamesImplBase
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A base class for client-side implementations of the LocalizedNames interface.

Summary

[Expand]
Inherited Fields
From class com.google.gwt.i18n.client.DefaultLocalizedNamesBase
Public Constructors
LocalizedNamesImplBase()
Public Methods
final String getRegionNameImpl(String regionCode)
Protected Methods
final void loadNameMap()
Initializes {namesMap to a map of region code (including non-country codes) to localized names.
void loadNameMapJava()
Load the code=>name map for use in pure Java.
abstract JavaScriptObject loadNameMapNative()
Load the code=>name map for use in JS.
final boolean needsNameMap()
final static JavaScriptObject overrideMap(JavaScriptObject original, JavaScriptObject override)
Add all entries in override to the original map, replacing any existing entries.
[Expand]
Inherited Methods
From class com.google.gwt.i18n.client.DefaultLocalizedNames
From class com.google.gwt.i18n.client.DefaultLocalizedNamesBase
From class java.lang.Object
From interface com.google.gwt.i18n.client.LocalizedNames

Public Constructors

public LocalizedNamesImplBase ()

Public Methods

public final String getRegionNameImpl (String regionCode)

Protected Methods

protected final void loadNameMap ()

Initializes {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 void loadNameMapJava ()

Load the code=>name map for use in pure Java. On return, nameMap will be appropriately initialized.

protected abstract JavaScriptObject loadNameMapNative ()

Load the code=>name map for use in JS.

Returns
  • a JSO containing a map of country codes to localized names

protected final boolean needsNameMap ()

Returns
  • true if the name map needs to be loaded -- subclasses that provide alternate storage for the name map (such as in JSOs) should override this.

protected static final JavaScriptObject overrideMap (JavaScriptObject original, JavaScriptObject override)

Add all entries in override to the original map, replacing any existing entries. This is used by subclasses that need to slightly alter the data used by the parent locale.