java.lang.Object | |
↳ | com.google.gwt.i18n.client.DefaultCurrencyData |
Known Direct Subclasses |
A default CurrencyData
implementation, so new methods can be added
to the interface without breaking implementors if a reasonable default is
available.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a default default
CurrencyData instance, returning false for all isFoo methods, having 2 fractional digits by
default, and using the standard symbol for the portable symbol. | |||||||||||
Create a default default
CurrencyData instance, returning false for all isFoo methods and using the standard symbol for the
portable symbol. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the ISO4217 code for this currency.
| |||||||||||
Returns the default symbol to use for this currency.
| |||||||||||
Returns the default number of decimal positions for this currency.
| |||||||||||
Returns the default symbol to use for this currency, intended to be
recognizable in most locales.
| |||||||||||
Returns true if this currency is deprecated and should not be returned by
default in currency lists.
| |||||||||||
Returns true if there should always be a space between the currency symbol
and the number, false if there should be no space.
| |||||||||||
Returns true if the spacing between the currency symbol and the number is
fixed regardless of locale defaults.
| |||||||||||
Returns true if the position of the currency symbol relative to the number
is fixed regardless of locale defaults.
| |||||||||||
Returns true if the currency symbol should go before the number, false if
it should go after the number.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.i18n.client.CurrencyData
|
Create a default default CurrencyData
instance, returning false
for all isFoo
methods, having 2 fractional digits by
default, and using the standard symbol for the portable symbol.
currencyCode | ISO 4217 currency code |
---|---|
currencySymbol | symbol to use for this currency |
Create a default default CurrencyData
instance, returning false
for all isFoo
methods and using the standard symbol for the
portable symbol.
currencyCode | ISO 4217 currency code |
---|---|
currencySymbol | symbol to use for this currency |
fractionDigits | default number of fraction digits |
Returns the default number of decimal positions for this currency.
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()
.
Returns true if this currency is deprecated and should not be returned by default in currency lists.
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.
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()
.
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()
.
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.