Class DefaultDoubleDisplayConverter
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.DecimalNumericDisplayConverter
org.eclipse.nebula.widgets.nattable.data.convert.DefaultDoubleDisplayConverter
- All Implemented Interfaces:
IDisplayConverter
Converts the display value to a double and vice versa.
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.data.convert.NumericDisplayConverter
nf -
Constructor Summary
ConstructorsConstructorDescriptionCreates a converter that usesNumberFormat.DefaultDoubleDisplayConverter(boolean useNumberFormat) Creates a converter and allows to specify whetherNumberFormatshould be used or not. -
Method Summary
Methods inherited from class org.eclipse.nebula.widgets.nattable.data.convert.DecimalNumericDisplayConverter
setMaximumFractionDigits, setMinimumFractionDigitsMethods inherited from class org.eclipse.nebula.widgets.nattable.data.convert.NumericDisplayConverter
canonicalToDisplayValue, displayToCanonicalValue, getNumberFormat, setNumberFormatMethods inherited from class org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
canonicalToDisplayValue, displayToCanonicalValue
-
Constructor Details
-
DefaultDoubleDisplayConverter
public DefaultDoubleDisplayConverter()Creates a converter that usesNumberFormat. -
DefaultDoubleDisplayConverter
public DefaultDoubleDisplayConverter(boolean useNumberFormat) Creates a converter and allows to specify whetherNumberFormatshould be used or not.- Parameters:
useNumberFormat-trueif aNumberFormatshould be used,falseif not.- Since:
- 1.4
-
-
Method Details
-
convertToNumericValue
- Specified by:
convertToNumericValuein classNumericDisplayConverter
-