org.zkoss.pivot.impl
Class TabularPivotField

java.lang.Object
  extended by org.zkoss.pivot.impl.SimplePivotField
      extended by org.zkoss.pivot.impl.TabularPivotField
All Implemented Interfaces:
PivotField

public class TabularPivotField
extends SimplePivotField

A PivotField implementation for TabularPivotModel

Author:
dennischen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.zkoss.pivot.PivotField
PivotField.Type
 
Field Summary
static StandardCalculator DEFAULT_CALCULATOR
          Marks StandardCalculator.SUM_OR_COUNT as the default calculator.
protected static java.util.Comparator<java.lang.Object> DEFAULT_KEY_COMPARATOR
           
protected static java.util.Comparator<java.lang.Object> DEFAULT_KEY_COMPARATOR_DESC
           
 
Fields inherited from class org.zkoss.pivot.impl.SimplePivotField
_groupHandler, _name, _subtotals, _summary, _title, _type
 
Constructor Summary
TabularPivotField()
           
TabularPivotField(java.lang.String fieldName)
           
 
Method Summary
 java.util.Comparator<java.lang.Object> getComparator()
          Retrieve the comparator on field key.
 int getSourceDataIndex()
          Returns the data index in TabularPivotModel.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CALCULATOR

public static final StandardCalculator DEFAULT_CALCULATOR
Marks StandardCalculator.SUM_OR_COUNT as the default calculator.


DEFAULT_KEY_COMPARATOR

protected static final java.util.Comparator<java.lang.Object> DEFAULT_KEY_COMPARATOR

DEFAULT_KEY_COMPARATOR_DESC

protected static final java.util.Comparator<java.lang.Object> DEFAULT_KEY_COMPARATOR_DESC
Constructor Detail

TabularPivotField

public TabularPivotField()

TabularPivotField

public TabularPivotField(java.lang.String fieldName)
Method Detail

getSourceDataIndex

public int getSourceDataIndex()
Returns the data index in TabularPivotModel.


getSummary

public Calculator getSummary()
Description copied from interface: PivotField
Returns the summary calculator

Specified by:
getSummary in interface PivotField
Overrides:
getSummary in class SimplePivotField

getComparator

public java.util.Comparator<java.lang.Object> getComparator()
Retrieve the comparator on field key.

Returns:
a comparator, never null.


Copyright © 2013. All Rights Reserved.