wicket.util.convert.converters
Class FloatConverter

java.lang.Object
  extended by wicket.util.convert.converters.AbstractConverter
      extended by wicket.util.convert.converters.AbstractNumberConverter
          extended by wicket.util.convert.converters.AbstractDecimalConverter
              extended by wicket.util.convert.converters.FloatConverter
All Implemented Interfaces:
java.io.Serializable, ITypeConverter

public final class FloatConverter
extends AbstractDecimalConverter

Converts from Object to Float.

Author:
Eelco Hillenius, Jonathan Locke
See Also:
Serialized Form

Field Summary
static ITypeConverter INSTANCE
          The singleton instance for a float converter
 
Constructor Summary
FloatConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Object value, java.util.Locale locale)
          Converts the given value
protected  java.lang.Class getTargetType()
           
 
Methods inherited from class wicket.util.convert.converters.AbstractDecimalConverter
getNumberFormat
 
Methods inherited from class wicket.util.convert.converters.AbstractNumberConverter
parse
 
Methods inherited from class wicket.util.convert.converters.AbstractConverter
newConversionException, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ITypeConverter INSTANCE
The singleton instance for a float converter

Constructor Detail

FloatConverter

public FloatConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.Object value,
                                java.util.Locale locale)
Description copied from interface: ITypeConverter
Converts the given value

Parameters:
value - The value to convert
Returns:
The converted value
See Also:
ITypeConverter.convert(java.lang.Object,java.util.Locale)

getTargetType

protected java.lang.Class getTargetType()
Specified by:
getTargetType in class AbstractConverter
Returns:
The target type of this type converter
See Also:
AbstractConverter.getTargetType()


Copyright © 2004-2007 Wicket developers. All Rights Reserved.