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
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
DEFAULT_SUMMARY
 
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.
 
Methods inherited from class org.zkoss.pivot.impl.SimplePivotField
addFieldDataListener, fireEvent, getFieldName, getGroupHandler, getSubtotals, getSummary, getTitle, getType, removeFieldDataListener, setFieldName, setGroupHandler, setSubtotals, setSummary, setTitle, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.


getComparator

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

Returns:
a comparator, never null.


Copyright © 2012. All Rights Reserved.