Package org.zkoss.pivot.impl
Class TabularPivotField
java.lang.Object
org.zkoss.pivot.impl.SimplePivotField
org.zkoss.pivot.impl.TabularPivotField
- All Implemented Interfaces:
PivotField
A
PivotField implementation for TabularPivotModel- Author:
- dennischen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.zkoss.pivot.PivotField
PivotField.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StandardCalculatorMarksStandardCalculator.SUM_OR_COUNTas the default calculator.protected static final Comparator<Object>protected static final Comparator<Object>Fields inherited from class org.zkoss.pivot.impl.SimplePivotField
_groupHandler, _name, _subtotals, _summary, _title, _type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the comparator on field key.intReturns the data index inTabularPivotModel.Returns the summary calculatorMethods inherited from class org.zkoss.pivot.impl.SimplePivotField
addFieldDataListener, fireEvent, getFieldName, getGroupHandler, getSubtotal, getSubtotals, getTitle, getType, removeFieldDataListener, setFieldName, setGroupHandler, setSubtotals, setSummary, setTitle
-
Field Details
-
DEFAULT_CALCULATOR
MarksStandardCalculator.SUM_OR_COUNTas the default calculator. -
DEFAULT_KEY_COMPARATOR
-
DEFAULT_KEY_COMPARATOR_DESC
-
-
Constructor Details
-
TabularPivotField
public TabularPivotField() -
TabularPivotField
-
-
Method Details
-
getSourceDataIndex
public int getSourceDataIndex()Returns the data index inTabularPivotModel. -
getSummary
Description copied from interface:PivotFieldReturns the summary calculator- Specified by:
getSummaryin interfacePivotField- Overrides:
getSummaryin classSimplePivotField
-
getComparator
Retrieve the comparator on field key.- Returns:
- a comparator, never null.
-