Class SummaryDisplayConverter
java.lang.Object
org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
org.eclipse.nebula.widgets.nattable.summaryrow.SummaryDisplayConverter
- All Implemented Interfaces:
IDisplayConverter
Special display converter that will render a default value in case there is
no summary value calculated yet. If there is a value calculated, it will be
converted using the wrapped display converter.
By default "..." will be used as default value.
-
Constructor Summary
ConstructorsConstructorDescriptionSummaryDisplayConverter(IDisplayConverter wrappedConverter) SummaryDisplayConverter(IDisplayConverter wrappedConverter, Object defaultSummaryValue) -
Method Summary
Modifier and TypeMethodDescriptioncanonicalToDisplayValue(Object canonicalValue) Convert backing data value to value to be displayed.displayToCanonicalValue(Object displayValue) Convert from display value to value in the backing data structure.Methods inherited from class org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
canonicalToDisplayValue, displayToCanonicalValue
-
Constructor Details
-
SummaryDisplayConverter
- Parameters:
wrappedConverter- The IDisplayConverter that is wrapped by this GroupBySummaryDisplayConverter. Will be used to convert calculated values.
-
SummaryDisplayConverter
- Parameters:
wrappedConverter- The IDisplayConverter that is wrapped by this GroupBySummaryDisplayConverter. Will be used to convert calculated values.defaultSummaryValue- The value that will be shown in case the summary value is not calculated yet.
-
-
Method Details
-
canonicalToDisplayValue
Description copied from interface:IDisplayConverterConvert backing data value to value to be displayed. Typically converts to a String for display.- Specified by:
canonicalToDisplayValuein interfaceIDisplayConverter- Specified by:
canonicalToDisplayValuein classDisplayConverter- Parameters:
canonicalValue- The data value from the backing data.- Returns:
- The converted value to display.
-
displayToCanonicalValue
Description copied from interface:IDisplayConverterConvert from display value to value in the backing data structure.NOTE:
The type the display value is converted to must match the type in the setter of the backing bean/row object- Specified by:
displayToCanonicalValuein interfaceIDisplayConverter- Specified by:
displayToCanonicalValuein classDisplayConverter- Parameters:
displayValue- The display value that should be converted to the data value that matches the backing data.- Returns:
- The converted value to put to the backing data.
-