Uses of Interface
org.zkoss.pivot.Calculator
-
Packages that use Calculator Package Description org.zkoss.pivot Major classes of ZK Pivottable.org.zkoss.pivot.impl Implementation of models.org.zkoss.pivot.impl.calc org.zkoss.pivot.ui Macro components for Pivottable control.org.zkoss.pivot.util Pivottable related utility classes. -
-
Uses of Calculator in org.zkoss.pivot
Methods in org.zkoss.pivot that return Calculator Modifier and Type Method Description Calculator
PivotHeaderContext. getCalculator()
Returns the subtotal Calculator if the context represents a subtotal slot, null otherwise.Calculator
PivotField. getSubtotal(int index)
Returns the ith subtotal calculator on the field.Calculator[]
PivotField. getSubtotals()
Returns a set of subtotal calculator in order.Calculator
PivotField. getSummary()
Returns the summary calculatorCalculator[]
PivotModelExt. getSupportedCalculators()
Return a list of supported Calculators as options of Summary and Subtotals.Methods in org.zkoss.pivot with parameters of type Calculator Modifier and Type Method Description String
PivotRenderer. renderSubtotalField(Object data, Pivottable table, PivotField field, Calculator calculator)
Renders the label of a subtotal field.void
PivotModelExt. setFieldSubtotals(PivotField field, Calculator[] subtotals)
Set the subtotals on a field.void
PivotModelExt. setFieldSummary(PivotField field, Calculator summary)
Set the summary on a field.Constructors in org.zkoss.pivot with parameters of type Calculator Constructor Description PivotHeaderContext(PivotHeaderNode node, Calculator calculator, int displayIndex)
-
Uses of Calculator in org.zkoss.pivot.impl
Classes in org.zkoss.pivot.impl that implement Calculator Modifier and Type Class Description class
AbstractCalculator<C extends Context<C>>
The skeleton to implementContextualCalculator
.class
StandardCalculator
The built-in Calculator set forTabularPivotModel
.Fields in org.zkoss.pivot.impl declared as Calculator Modifier and Type Field Description protected Calculator[]
SimplePivotField. _subtotals
protected Calculator
SimplePivotField. _summary
Methods in org.zkoss.pivot.impl that return Calculator Modifier and Type Method Description Calculator
SimplePivotField. getSubtotal(int index)
Calculator[]
SimplePivotField. getSubtotals()
Calculator
SimplePivotField. getSummary()
Calculator
TabularPivotField. getSummary()
Calculator[]
TabularPivotModel. getSupportedCalculators()
Methods in org.zkoss.pivot.impl with parameters of type Calculator Modifier and Type Method Description protected ContextualCalculator<?>
TabularPivotModel. cast(Calculator calc)
String
SimplePivotRenderer. renderSubtotalField(Object data, Pivottable table, PivotField field, Calculator calculator)
void
TabularPivotModel. setFieldSubtotals(String fieldName, Calculator[] subtotals)
Sets the subtotal calculators on a field, or null to show no subtotal.void
TabularPivotModel. setFieldSubtotals(PivotField field, Calculator[] subtotals)
void
TabularPivotModel. setFieldSummary(String fieldName, Calculator summary)
Sets the summary calculator on a field, or null to use the default one.void
TabularPivotModel. setFieldSummary(PivotField field, Calculator summary)
protected void
SimplePivotField. setSubtotals(Calculator[] subtotals)
protected void
SimplePivotField. setSummary(Calculator summary)
-
Uses of Calculator in org.zkoss.pivot.impl.calc
Subinterfaces of Calculator in org.zkoss.pivot.impl.calc Modifier and Type Interface Description interface
ContextualCalculator<C extends Context<C>>
The interface forCalculator
that usesContext
to compute an aggregation summary. -
Uses of Calculator in org.zkoss.pivot.ui
Fields in org.zkoss.pivot.ui with type parameters of type Calculator Modifier and Type Field Description protected Map<String,Calculator>
PivotFieldControl. _calmap
Methods in org.zkoss.pivot.ui that return Calculator Modifier and Type Method Description Calculator[]
PivotFieldControl. getSubtotals(PivotField field)
Methods in org.zkoss.pivot.ui with parameters of type Calculator Modifier and Type Method Description void
PivotFieldControl. setSubtotals(PivotField field, Calculator[] selected)
-
Uses of Calculator in org.zkoss.pivot.util
Methods in org.zkoss.pivot.util that return Calculator Modifier and Type Method Description Calculator
PivotExportCell. getCalcuator()
Returns the Calculator.static Calculator
Trees. getCalculator(PivotField field, int index)
Retrieves the Calculator from a field by index.static Calculator
Trees. getCalculator(PivotHeaderNode node, int index)
Retrieves the Calculator from a node by index.Constructors in org.zkoss.pivot.util with parameters of type Calculator Constructor Description PivotExportCell(PivotExportCell.Type type, String label, Object key, int[] span, String fieldName, Calculator calculator)
-