|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.i18n.client.CurrencyList
public class CurrencyList
Generated class containing all the CurrencyImpl instances. This is just the fallback in case the I18N module is not included.
Field Summary | |
---|---|
protected JavaScriptObject |
dataMap
JS Object which contains a map of currency codes to CurrencyDataImpl objects. |
protected JavaScriptObject |
namesMap
JS Object which contains a map of currency codes to localized currency names. |
Constructor Summary | |
---|---|
CurrencyList()
|
Method Summary | |
---|---|
protected void |
ensureCurrencyMap()
Ensure that the map of currency data has been initialized. |
protected void |
ensureNamesMap()
Ensure that the map of currency data has been initialized. |
static CurrencyList |
get()
Return the singleton instance of CurrencyList. |
CurrencyData |
getDefault()
Return the default currency data for this locale. |
protected CurrencyData |
getEntry(java.lang.String code)
Directly reference an entry in the currency map JSO. |
protected java.lang.String |
getNamesEntry(java.lang.String code)
Directly reference an entry in the currency names map JSO. |
protected static boolean |
isDeprecated(CurrencyData currencyData)
|
java.util.Iterator<CurrencyData> |
iterator()
Returns an iterator for the list of currencies. |
java.util.Iterator<CurrencyData> |
iterator(boolean includeDeprecated)
Returns an iterator for the list of currencies, optionally including deprecated ones. |
protected void |
loadCurrencyMap()
Loads the currency map from a JS object literal. |
protected void |
loadNamesMap()
Loads the currency names map from a JS object literal. |
CurrencyData |
lookup(java.lang.String currencyCode)
Lookup a currency based on the ISO4217 currency code. |
java.lang.String |
lookupName(java.lang.String currencyCode)
Lookup a currency name based on the ISO4217 currency code. |
protected void |
overrideCurrencyMap(JavaScriptObject override)
Add all entries in override to the currency data map, replacing
any existing entries. |
protected void |
overrideNamesMap(JavaScriptObject override)
Add all entries in override to the currency name map, replacing
any existing entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JavaScriptObject dataMap
protected JavaScriptObject namesMap
dataMap
above so that the names
can be completely removed by the compiler if they are not used. Each
currency code is assumed to be a valid JS object key.
Constructor Detail |
---|
public CurrencyList()
Method Detail |
---|
public static CurrencyList get()
protected static boolean isDeprecated(CurrencyData currencyData)
public CurrencyData getDefault()
public final java.util.Iterator<CurrencyData> iterator()
iterator
in interface java.lang.Iterable<CurrencyData>
public final java.util.Iterator<CurrencyData> iterator(boolean includeDeprecated)
includeDeprecated
- true if deprecated currencies should be includedpublic final CurrencyData lookup(java.lang.String currencyCode)
currencyCode
- ISO4217 currency code
public final java.lang.String lookupName(java.lang.String currencyCode)
currencyCode
- ISO4217 currency code
protected final void ensureCurrencyMap()
protected final void ensureNamesMap()
protected final CurrencyData getEntry(java.lang.String code)
code
- ISO4217 currency code
protected final java.lang.String getNamesEntry(java.lang.String code)
code
- ISO4217 currency code
protected void loadCurrencyMap()
protected void loadNamesMap()
protected final void overrideCurrencyMap(JavaScriptObject override)
override
to the currency data map, replacing
any existing entries. This is used by subclasses that need to slightly
alter the data used by the parent locale.
override
- JS object with currency code -> CurrencyData pairsprotected final void overrideNamesMap(JavaScriptObject override)
override
to the currency name map, replacing
any existing entries. This is used by subclasses that need to slightly
alter the data used by the parent locale.
override
- JS object with currency code -> name pairs
|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |