Package org.zkoss.pivot
Interface PivotModelExt
- All Superinterfaces:
PivotModel
- All Known Implementing Classes:
TabularPivotModel
An extension of
PivotModel which specifies control methods, used by
PivotFieldControl.- Author:
- simonpai
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe optional interface for sorting control. -
Method Summary
Modifier and TypeMethodDescriptionReturn a list of supported Calculators as options of Summary and Subtotals.voidsetFieldSubtotals(PivotField field, Calculator[] subtotals) Set the subtotals on a field.voidsetFieldSummary(PivotField field, Calculator summary) Set the summary on a field.voidsetFieldType(PivotField field, PivotField.Type type) Change the type of a pivot field.voidsetFieldType(PivotField field, PivotField.Type type, int index) Change the type of a pivot field and insert it at the given level (in case of COLUMN or ROW) or display position (in case of DATA).Methods inherited from interface org.zkoss.pivot.PivotModel
addPivotDataListener, getColumnHeaderTree, getFields, getFields, getRowHeaderTree, getValue, removePivotDataListener
-
Method Details
-
setFieldType
Change the type of a pivot field. The field will be at the last level of column/row in case of COLUMN or ROW, and will be the last one in display order in case of DATA.- See Also:
-
setFieldType
Change the type of a pivot field and insert it at the given level (in case of COLUMN or ROW) or display position (in case of DATA).- Parameters:
index- the tree level or display position- See Also:
-
getSupportedCalculators
Calculator[] getSupportedCalculators()Return a list of supported Calculators as options of Summary and Subtotals. -
setFieldSummary
Set the summary on a field. -
setFieldSubtotals
Set the subtotals on a field.
-