public interface

CurrencyData

com.google.gwt.i18n.client.CurrencyData
Known Indirect Subclasses

Class Overview

Information about a currency.

Summary

Public Methods
abstract String getCurrencyCode()
Returns the ISO4217 code for this currency.
abstract String getCurrencySymbol()
Returns the default symbol to use for this currency.
abstract int getDefaultFractionDigits()
Returns the default number of decimal positions for this currency.
abstract String getPortableCurrencySymbol()
Returns the default symbol to use for this currency, intended to be recognizable in most locales.
abstract boolean isDeprecated()
Returns true if this currency is deprecated and should not be returned by default in currency lists.
abstract boolean isSpaceForced()
Returns true if there should always be a space between the currency symbol and the number, false if there should be no space.
abstract boolean isSpacingFixed()
Returns true if the spacing between the currency symbol and the number is fixed regardless of locale defaults.
abstract boolean isSymbolPositionFixed()
Returns true if the position of the currency symbol relative to the number is fixed regardless of locale defaults.
abstract boolean isSymbolPrefix()
Returns true if the currency symbol should go before the number, false if it should go after the number.

Public Methods

public abstract String getCurrencyCode ()

Returns the ISO4217 code for this currency.

public abstract String getCurrencySymbol ()

Returns the default symbol to use for this currency.

public abstract int getDefaultFractionDigits ()

Returns the default number of decimal positions for this currency.

public abstract String getPortableCurrencySymbol ()

Returns the default symbol to use for this currency, intended to be recognizable in most locales. If such a symbol is not available, it is acceptable to return the same value as getCurrencySymbol().

public abstract boolean isDeprecated ()

Returns true if this currency is deprecated and should not be returned by default in currency lists.

public abstract boolean isSpaceForced ()

Returns true if there should always be a space between the currency symbol and the number, false if there should be no space. Ignored unless isSpacingFixed() returns true.

public abstract boolean isSpacingFixed ()

Returns true if the spacing between the currency symbol and the number is fixed regardless of locale defaults. In this case, spacing will be determined by isSpaceForced().

public abstract boolean isSymbolPositionFixed ()

Returns true if the position of the currency symbol relative to the number is fixed regardless of locale defaults. In this case, the position will be determined by isSymbolPrefix().

public abstract boolean isSymbolPrefix ()

Returns true if the currency symbol should go before the number, false if it should go after the number. This is ignored unless isSymbolPositionFixed() is true.