Package org.zkoss.pivot.impl
Class TabularPivotField
- java.lang.Object
-
- org.zkoss.pivot.impl.SimplePivotField
-
- org.zkoss.pivot.impl.TabularPivotField
-
- All Implemented Interfaces:
PivotField
public class TabularPivotField extends SimplePivotField
APivotFieldimplementation forTabularPivotModel- Author:
- dennischen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.zkoss.pivot.PivotField
PivotField.Type
-
-
Field Summary
Fields Modifier and Type Field Description static StandardCalculatorDEFAULT_CALCULATORMarksStandardCalculator.SUM_OR_COUNTas the default calculator.protected static Comparator<Object>DEFAULT_KEY_COMPARATORprotected static Comparator<Object>DEFAULT_KEY_COMPARATOR_DESC-
Fields inherited from class org.zkoss.pivot.impl.SimplePivotField
_groupHandler, _name, _subtotals, _summary, _title, _type
-
-
Constructor Summary
Constructors Constructor Description TabularPivotField()TabularPivotField(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Object>getComparator()Retrieve the comparator on field key.intgetSourceDataIndex()Returns the data index inTabularPivotModel.CalculatorgetSummary()Returns the summary calculator-
Methods inherited from class org.zkoss.pivot.impl.SimplePivotField
addFieldDataListener, fireEvent, getFieldName, getGroupHandler, getSubtotal, getSubtotals, getTitle, getType, removeFieldDataListener, setFieldName, setGroupHandler, setSubtotals, setSummary, setTitle
-
-
-
-
Field Detail
-
DEFAULT_CALCULATOR
public static final StandardCalculator DEFAULT_CALCULATOR
MarksStandardCalculator.SUM_OR_COUNTas the default calculator.
-
DEFAULT_KEY_COMPARATOR
protected static final Comparator<Object> DEFAULT_KEY_COMPARATOR
-
DEFAULT_KEY_COMPARATOR_DESC
protected static final Comparator<Object> DEFAULT_KEY_COMPARATOR_DESC
-
-
Constructor Detail
-
TabularPivotField
public TabularPivotField()
-
TabularPivotField
public TabularPivotField(String fieldName)
-
-
Method Detail
-
getSourceDataIndex
public int getSourceDataIndex()
Returns the data index inTabularPivotModel.
-
getSummary
public Calculator getSummary()
Description copied from interface:PivotFieldReturns the summary calculator- Specified by:
getSummaryin interfacePivotField- Overrides:
getSummaryin classSimplePivotField
-
getComparator
public Comparator<Object> getComparator()
Retrieve the comparator on field key.- Returns:
- a comparator, never null.
-
-