com.ibm.ulc.ui.dataTypes
Class UIDoubleNumberFormatConverter

java.lang.Object
  |
  +--com.ibm.ulc.ui.dataTypes.UINumberFormatConverter
        |
        +--com.ibm.ulc.ui.dataTypes.UIDoubleNumberFormatConverter

public class UIDoubleNumberFormatConverter
extends UINumberFormatConverter


Field Summary
protected static double DECIMAL_DIGITS_PER_BINARY_DIGIT
          The number of decimal digits per binary digits
protected static double SIGNIFICANT_DECIMAL_DIGITS
          The number of significant decimal digits (computed from the 52 IEEE754 binary decimal digits)
 
Fields inherited from class com.ibm.ulc.ui.dataTypes.UINumberFormatConverter
fFormat
 
Constructor Summary
UIDoubleNumberFormatConverter()
          UIDoubleNumberFormatConverter constructor comment.
 
Method Summary
 java.lang.String convertToEditString(java.lang.Object object)
          Answer a String representation of the parameter suitable for editing (e.g.
 java.lang.Object convertToObject(java.lang.String string)
          convertToObject using NumberFormat If the numberformat does not answer a Long or Double, as promised in the comment of NumberFormat :: Number parse(String, ParsePosition), throw an exception.
 
Methods inherited from class com.ibm.ulc.ui.dataTypes.UINumberFormatConverter
convertToString, getInstance, setGroupingUsed, setMaximumFractionDigits, setMinimumFractionDigits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECIMAL_DIGITS_PER_BINARY_DIGIT

protected static double DECIMAL_DIGITS_PER_BINARY_DIGIT
The number of decimal digits per binary digits

SIGNIFICANT_DECIMAL_DIGITS

protected static double SIGNIFICANT_DECIMAL_DIGITS
The number of significant decimal digits (computed from the 52 IEEE754 binary decimal digits)
Constructor Detail

UIDoubleNumberFormatConverter

public UIDoubleNumberFormatConverter()
UIDoubleNumberFormatConverter constructor comment.
Method Detail

convertToEditString

public java.lang.String convertToEditString(java.lang.Object object)
Answer a String representation of the parameter suitable for editing (e.g. increased precision).
Overrides:
convertToEditString in class UINumberFormatConverter
Tags copied from interface: IStringConverter
Parameters:
object - java.lang.Object
Returns:
java.lang.Object

convertToObject

public java.lang.Object convertToObject(java.lang.String string)
                                 throws DataTypeConversionException
convertToObject using NumberFormat If the numberformat does not answer a Long or Double, as promised in the comment of NumberFormat :: Number parse(String, ParsePosition), throw an exception.
Overrides:
convertToObject in class UINumberFormatConverter
Tags copied from interface: IStringConverter
Parameters:
string - java.lang.String
Returns:
java.lang.Object
Throws:
DataTypeConversionException - The exception description.