Class SummationSummaryProvider

java.lang.Object
org.eclipse.nebula.widgets.nattable.summaryrow.SummationSummaryProvider
All Implemented Interfaces:
ISummaryProvider

public class SummationSummaryProvider extends Object implements ISummaryProvider
Implementation of ISummaryProvider that summarizes all values in a column if they are of type Number and return the sum as Double value.

If a column contains mixed values, e.g. Strings and Integers, the SummationSummaryProvider will return ISummaryProvider.DEFAULT_SUMMARY_VALUE by default, as a summation is not possible this way. You are able to change that behaviour by creating the SummationSummaryProvider with the parameter strict set to false. In that case the non Number values will be ignored.