Package org.zkoss.pivot
Interface PivotModelExt
-
- All Superinterfaces:
PivotModel
- All Known Implementing Classes:
TabularPivotModel
public interface PivotModelExt extends PivotModel
An extension ofPivotModel
which specifies control methods, used byPivotFieldControl
.- Author:
- simonpai
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PivotModelExt.SortCtrl
The optional interface for sorting control.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Calculator[]
getSupportedCalculators()
Return a list of supported Calculators as options of Summary and Subtotals.void
setFieldSubtotals(PivotField field, Calculator[] subtotals)
Set the subtotals on a field.void
setFieldSummary(PivotField field, Calculator summary)
Set the summary on a field.void
setFieldType(PivotField field, PivotField.Type type)
Change the type of a pivot field.void
setFieldType(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 Detail
-
setFieldType
void setFieldType(PivotField field, PivotField.Type type)
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:
PivotField.Type
-
setFieldType
void setFieldType(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).- Parameters:
index
- the tree level or display position- See Also:
PivotField.Type
-
getSupportedCalculators
Calculator[] getSupportedCalculators()
Return a list of supported Calculators as options of Summary and Subtotals.
-
setFieldSummary
void setFieldSummary(PivotField field, Calculator summary)
Set the summary on a field.
-
setFieldSubtotals
void setFieldSubtotals(PivotField field, Calculator[] subtotals)
Set the subtotals on a field.
-
-