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
APivotField
implementation 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 StandardCalculator
DEFAULT_CALCULATOR
MarksStandardCalculator.SUM_OR_COUNT
as the default calculator.protected static Comparator<Object>
DEFAULT_KEY_COMPARATOR
protected 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.int
getSourceDataIndex()
Returns the data index inTabularPivotModel
.Calculator
getSummary()
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_COUNT
as 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:PivotField
Returns the summary calculator- Specified by:
getSummary
in interfacePivotField
- Overrides:
getSummary
in classSimplePivotField
-
getComparator
public Comparator<Object> getComparator()
Retrieve the comparator on field key.- Returns:
- a comparator, never null.
-
-