Class DefaultFloatDisplayConverter
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.DefaultFloatDisplayConverter
- All Implemented Interfaces:
IDisplayConverter
Converts the display value to a float 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.DefaultFloatDisplayConverter(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
-
DefaultFloatDisplayConverter
public DefaultFloatDisplayConverter()Creates a converter that usesNumberFormat. -
DefaultFloatDisplayConverter
public DefaultFloatDisplayConverter(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
-