JIDE 3.5.15

com.jidesoft.converter
Class BigDecimalConverter

java.lang.Object
  extended by com.jidesoft.converter.NumberConverter
      extended by com.jidesoft.converter.NumberFormatConverter
          extended by com.jidesoft.converter.BigDecimalConverter
All Implemented Interfaces:
ObjectConverter

public class BigDecimalConverter
extends NumberFormatConverter

Converter for BigDecimal.


Field Summary
 
Fields inherited from class com.jidesoft.converter.NumberConverter
CONTEXT_FRACTION_NUMBER
 
Constructor Summary
BigDecimalConverter()
           
BigDecimalConverter(NumberFormat format)
           
 
Method Summary
 Object fromString(String string, ConverterContext context)
          Converts from String to an object.
 String toString(Object obj, ConverterContext convertercontext)
          Converts from object to String based on current locale.
 
Methods inherited from class com.jidesoft.converter.NumberFormatConverter
supportFromString
 
Methods inherited from class com.jidesoft.converter.NumberConverter
getDefaultNumberFormat, getNumberFormat, isAvoidNegativeZero, isGroupingUsed, parseNumber, setAvoidNegativeZero, setCurrency, setFractionDigits, setGroupingUsed, setIntegerDigits, setNumberFormat, setRoundingMode, supportToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimalConverter

public BigDecimalConverter()

BigDecimalConverter

public BigDecimalConverter(NumberFormat format)
Method Detail

fromString

public Object fromString(String string,
                         ConverterContext context)
Description copied from interface: ObjectConverter
Converts from String to an object.

Specified by:
fromString in interface ObjectConverter
Overrides:
fromString in class NumberFormatConverter
Parameters:
string - the string
context - context to be converted
Returns:
the object converted from string

toString

public String toString(Object obj,
                       ConverterContext convertercontext)
Description copied from interface: ObjectConverter
Converts from object to String based on current locale.

Specified by:
toString in interface ObjectConverter
Overrides:
toString in class NumberConverter
Parameters:
obj - object to be converted
convertercontext - converter context to be used
Returns:
the String

JIDE 3.5.15