ilog.cpl.util.text
Class IlpDecimalFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by java.text.DecimalFormat
              extended by ilog.cpl.util.text.IlpDecimalFormat
All Implemented Interfaces:
Serializable, Cloneable

public class IlpDecimalFormat
extends DecimalFormat

Encapsulates in a Bean java.text.DecimalFormat, so that it can be parsed by the CSS engine when configuring ILOG JTGO.

It defines the getter and setter methods (getPattern and setPattern) for the pattern used to convert decimal numbers.

Since:
JTGO 3.5
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field
 
Field Summary
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
IlpDecimalFormat()
           
 
Method Summary
 String getPattern()
          Method to retrieve the current pattern.
 void setPattern(String pattern)
          Method to set a new pattern for the format.
 
Methods inherited from class java.text.DecimalFormat
applyLocalizedPattern, applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, toLocalizedPattern, toPattern
 
Methods inherited from class java.text.NumberFormat
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setParseIntegerOnly
 
Methods inherited from class java.text.Format
format, parseObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpDecimalFormat

public IlpDecimalFormat()
Method Detail

setPattern

public void setPattern(String pattern)
Method to set a new pattern for the format.

If the given pattern is null, nothing will be done; the current pattern is preserved.

Parameters:
pattern - The new pattern to be used.

getPattern

public String getPattern()
Method to retrieve the current pattern.

Returns:
The current pattern being used.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.