Package com.jidesoft.converter
Class ShortConverter
- java.lang.Object
-
- com.jidesoft.converter.NumberConverter
-
- com.jidesoft.converter.ShortConverter
-
- All Implemented Interfaces:
ObjectConverter
public class ShortConverter extends NumberConverter
Converter which converts Short to String and converts it back.
-
-
Field Summary
-
Fields inherited from class com.jidesoft.converter.NumberConverter
CONTEXT_FRACTION_NUMBER
-
-
Constructor Summary
Constructors Constructor Description ShortConverter()ShortConverter(java.text.NumberFormat format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectfromString(java.lang.String string, ConverterContext context)Converts from String to an object.booleansupportFromString(java.lang.String string, ConverterContext context)If it supports fromString.-
Methods inherited from class com.jidesoft.converter.NumberConverter
getDefaultNumberFormat, getNumberFormat, isAvoidNegativeZero, isGroupingUsed, parseNumber, setAvoidNegativeZero, setCurrency, setFractionDigits, setGroupingUsed, setIntegerDigits, setNumberFormat, setRoundingMode, supportToString, toString
-
-
-
-
Method Detail
-
fromString
public java.lang.Object fromString(java.lang.String string, ConverterContext context)Description copied from interface:ObjectConverterConverts from String to an object.- Parameters:
string- the stringcontext- context to be converted- Returns:
- the object converted from string
-
supportFromString
public boolean supportFromString(java.lang.String string, ConverterContext context)Description copied from interface:ObjectConverterIf it supports fromString.- Parameters:
string- the stringcontext- context to be converted- Returns:
- true if it supports
-
-