Delegates to java..
Configures BigDecimal parsing so there is no loss of precision.
Can apply a specified java. to parsed values.
setLenient, setRoundingMode
| Modifier and Type | Field and Description |
|---|---|
| private Currency | |
| private int | |
| private String | |
| private RoundingMode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected NumberFormat | getNumberFormat(Locale
the current locale locale)Implements abstract org. |
| public BigDecimal | parse(String
the text string text, Locale the current user locale locale)Overrides org. Implements org. |
| public void | |
| public void | |
| public void | |
| public void |
| currency | back to summary |
|---|---|
| private Currency currency
| |
| fractionDigits | back to summary |
|---|---|
| private int fractionDigits | |
| pattern | back to summary |
|---|---|
| private String pattern
| |
| roundingMode | back to summary |
|---|---|
| private RoundingMode roundingMode
| |
| CurrencyStyleFormatter | back to summary |
|---|---|
| public CurrencyStyleFormatter() | |
| getNumberFormat | back to summary |
|---|---|
| protected NumberFormat getNumberFormat(Locale locale) Implements abstract org. Doc from org. Obtain a concrete NumberFormat for the specified locale.
| |
| parse | back to summary |
|---|---|
| public BigDecimal parse(String text, Locale locale) throws ParseException Overrides org. Implements org. Doc from org. Parse a text String to produce a T.
| |
| setCurrency | back to summary |
|---|---|
| public void setCurrency(Currency currency) Specify the currency, if known. | |
| setFractionDigits | back to summary |
|---|---|
| public void setFractionDigits(int fractionDigits) Specify the desired number of fraction digits. Default is 2. | |
| setPattern | back to summary |
|---|---|
| public void setPattern(String pattern) Specify the pattern to use to format number values. If not specified, the default DecimalFormat pattern is used. | |
| setRoundingMode | back to summary |
|---|---|
| public void setRoundingMode(RoundingMode roundingMode) Specify the rounding mode to use for decimal parsing.
Default is | |