Class DefaultLongDisplayConverter
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
-
- org.eclipse.nebula.widgets.nattable.data.convert.NumericDisplayConverter
-
- org.eclipse.nebula.widgets.nattable.data.convert.DefaultLongDisplayConverter
-
- All Implemented Interfaces:
IDisplayConverter
- Direct Known Subclasses:
DefaultBigIntegerDisplayConverter
public class DefaultLongDisplayConverter extends NumericDisplayConverter
Converts the display value to a long and vice versa.
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.data.convert.NumericDisplayConverter
nf
-
-
Constructor Summary
Constructors Constructor Description DefaultLongDisplayConverter()
Creates a converter that usesNumberFormat
.DefaultLongDisplayConverter(boolean useNumberFormat)
Creates a converter and allows to specify whetherNumberFormat
should be used or not.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
convertToNumericValue(String value)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.data.convert.NumericDisplayConverter
canonicalToDisplayValue, displayToCanonicalValue, getNumberFormat, setNumberFormat
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
canonicalToDisplayValue, displayToCanonicalValue
-
-
-
-
Constructor Detail
-
DefaultLongDisplayConverter
public DefaultLongDisplayConverter()
Creates a converter that usesNumberFormat
.
-
DefaultLongDisplayConverter
public DefaultLongDisplayConverter(boolean useNumberFormat)
Creates a converter and allows to specify whetherNumberFormat
should be used or not.- Parameters:
useNumberFormat
-true
if aNumberFormat
should be used,false
if not.- Since:
- 1.4
-
-
Method Detail
-
convertToNumericValue
protected Object convertToNumericValue(String value)
- Specified by:
convertToNumericValue
in classNumericDisplayConverter
-
-