public class IlpDecimalFormat extends DecimalFormat
java.text.DecimalFormat
,
so that it can be parsed by the CSS engine when configuring JTGO.
It defines the getter and setter methods (getPattern
and
setPattern
) for the pattern used to convert decimal numbers.
NumberFormat.Field
FRACTION_FIELD, INTEGER_FIELD
Constructor and Description |
---|
IlpDecimalFormat() |
Modifier and Type | Method and Description |
---|---|
String |
getPattern()
Method to retrieve the current pattern.
|
void |
setPattern(String pattern)
Method to set a new pattern for the format.
|
applyLocalizedPattern, applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnly
format, parseObject
public void setPattern(String pattern)
If the given pattern is null
, nothing will be done; the current
pattern is preserved.
pattern
- The new pattern to be used.public String getPattern()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.