Class CurrencyConverter<N extends Number>
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<N>
-
- com.googlecode.wicket.jquery.core.converter.CurrencyConverter<N>
-
- Type Parameters:
N- The number object type
- All Implemented Interfaces:
Serializable,IConverter<N>,IClusterable
@Deprecated public abstract class CurrencyConverter<N extends Number> extends AbstractConverter<N>
Deprecated.there is a bug in java currency converter...Provides a base class for converting currency numbers toObject- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CurrencyConverter(IJQueryCultureWidget widget)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NconvertToObject(String value, Locale locale)Deprecated.StringconvertToString(N value, Locale locale)Deprecated.LocalegetLocale()Deprecated.Gets theLocalefrom theIJQueryCultureWidgetcurrent cultureprotected abstract Class<N>getTargetType()Deprecated.protected Nparse(String value, double min, double max, Locale locale)Deprecated.Parses a value as a String and returns a Number.-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
-
-
-
-
Constructor Detail
-
CurrencyConverter
public CurrencyConverter(IJQueryCultureWidget widget)
Deprecated.
-
-
Method Detail
-
getTargetType
protected abstract Class<N> getTargetType()
Deprecated.- Specified by:
getTargetTypein classAbstractConverter<N extends Number>
-
parse
protected N parse(String value, double min, double max, Locale locale) throws ConversionException
Deprecated.Parses a value as a String and returns a Number.- Parameters:
value- the string to parsemin- the minimum allowed valuemax- the maximum allowed valuelocale- theLocale- Returns:
- the converted number
- Throws:
ConversionException- if value is unparsable or out of range
-
convertToString
public String convertToString(N value, Locale locale)
Deprecated.- Specified by:
convertToStringin interfaceIConverter<N extends Number>- Overrides:
convertToStringin classAbstractConverter<N extends Number>
-
getLocale
public Locale getLocale()
Deprecated.Gets theLocalefrom theIJQueryCultureWidgetcurrent culture- Returns:
- the
Locale
-
-