Class AbstractDecimalConverter<N extends Number>
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<N>
-
- org.apache.wicket.util.convert.converter.AbstractNumberConverter<N>
-
- org.apache.wicket.util.convert.converter.AbstractDecimalConverter<N>
-
- Type Parameters:
N
-
- All Implemented Interfaces:
Serializable
,IConverter<N>
,IClusterable
- Direct Known Subclasses:
BigDecimalConverter
,DoubleConverter
,FloatConverter
public abstract class AbstractDecimalConverter<N extends Number> extends AbstractNumberConverter<N>
Base class for all converters of decimal numbers.- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDecimalConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NumberFormat
newNumberFormat(Locale locale)
Creates a newNumberFormat
for the given locale.-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractNumberConverter
convertToString, getNumberFormat, parse
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
getTargetType, newConversionException, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.util.convert.IConverter
convertToObject
-
-
-
-
Constructor Detail
-
AbstractDecimalConverter
public AbstractDecimalConverter()
-
-
Method Detail
-
newNumberFormat
protected NumberFormat newNumberFormat(Locale locale)
Creates a newNumberFormat
for the given locale. The instance is later cached and is accessible throughAbstractNumberConverter.getNumberFormat(Locale)
- Specified by:
newNumberFormat
in classAbstractNumberConverter<N extends Number>
- Parameters:
locale
-- Returns:
- number format
-
-