to.etc.domui.converter
Class DoubleConverter

java.lang.Object
  extended by to.etc.domui.converter.DoubleConverter
All Implemented Interfaces:
IConverter<java.lang.Double>, IObjectToStringConverter<java.lang.Double>, IStringToObjectConverter<java.lang.Double>

public class DoubleConverter
extends java.lang.Object
implements IConverter<java.lang.Double>

Converts a Double value to a string and v.v., the double is treated as a real number. FIXME This does not properly do locale handling!!!!!

Author:
Frits Jalvingh Created on Dec 10, 2010

Constructor Summary
DoubleConverter()
           
DoubleConverter(NumericPresentation np, int scale)
           
DoubleConverter(PropertyMetaModel<?> pmm)
           
 
Method Summary
 java.lang.String convertObjectToString(java.util.Locale loc, java.lang.Double in)
           
 java.lang.Double convertStringToObject(java.util.Locale loc, java.lang.String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleConverter

public DoubleConverter()

DoubleConverter

public DoubleConverter(PropertyMetaModel<?> pmm)

DoubleConverter

public DoubleConverter(NumericPresentation np,
                       int scale)
Method Detail

convertObjectToString

public java.lang.String convertObjectToString(java.util.Locale loc,
                                              java.lang.Double in)
                                       throws UIException
Specified by:
convertObjectToString in interface IObjectToStringConverter<java.lang.Double>
Throws:
UIException

convertStringToObject

public java.lang.Double convertStringToObject(java.util.Locale loc,
                                              java.lang.String input)
                                       throws UIException
Specified by:
convertStringToObject in interface IStringToObjectConverter<java.lang.Double>
Throws:
UIException