com.ibm.ulc.ui.dataTypes
Class UIFloatingDecimalConverter

java.lang.Object
  |
  +--com.ibm.ulc.ui.dataTypes.UIFloatingDecimalConverter
Direct Known Subclasses:
UIDoubleFloatingDecimalConverter, UIIntegerFloatingDecimalConverter

public abstract class UIFloatingDecimalConverter
extends java.lang.Object
implements IStringConverter

Insert the type's description here. Creation date: (23-Nov-99 10:54:02 AM)


Constructor Summary
UIFloatingDecimalConverter()
           
 
Method Summary
 java.lang.String convertToEditString(java.lang.Object object)
          convertToString using FloatingDecimal, if the argument is a Double or an Integer
abstract  java.lang.Object convertToObject(java.lang.String string)
          convertToObject usinf FloatingDecimal.
 java.lang.String convertToString(java.lang.Object object)
          convertToString using FloatingDecimal, if the argument is a Double or an Integer
static UIFloatingDecimalConverter getInstance(boolean isInteger)
          Answer an instance suitable for int, if isInteger == true, for double, otherwise Creation date: (23-Nov-99 5:43:33 PM)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIFloatingDecimalConverter

public UIFloatingDecimalConverter()
Method Detail

convertToEditString

public java.lang.String convertToEditString(java.lang.Object object)
convertToString using FloatingDecimal, if the argument is a Double or an Integer
Specified by:
convertToEditString in interface IStringConverter
Tags copied from interface: IStringConverter
Parameters:
object - java.lang.Object
Returns:
java.lang.Object

convertToObject

public abstract java.lang.Object convertToObject(java.lang.String string)
                                          throws DataTypeConversionException
convertToObject usinf FloatingDecimal.
Specified by:
convertToObject in interface IStringConverter
Tags copied from interface: IStringConverter
Parameters:
string - java.lang.String
Returns:
java.lang.Object
Throws:
DataTypeConversionException - The exception description.

convertToString

public java.lang.String convertToString(java.lang.Object object)
convertToString using FloatingDecimal, if the argument is a Double or an Integer
Specified by:
convertToString in interface IStringConverter
Tags copied from interface: IStringConverter
Parameters:
object - java.lang.Object
Returns:
java.lang.Object

getInstance

public static UIFloatingDecimalConverter getInstance(boolean isInteger)
Answer an instance suitable for int, if isInteger == true, for double, otherwise Creation date: (23-Nov-99 5:43:33 PM)
Parameters:
isInteger - boolean
Returns:
com.ibm.ulc.ui.dataTypes.UINumberFormatConverter