Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot
Interface PivotRowAdapter

All Superinterfaces:
PivotConstants, TableModel, TreeTableModelAdapterIF
All Known Subinterfaces:
OlapRowAdapter
All Known Implementing Classes:
DefaultPivotRowAdapter

public interface PivotRowAdapter
extends TreeTableModelAdapterIF, PivotConstants

PivotRowAdapter is a TreeTableModelAdapter subclass that defines another adapter at each node of its tree-like structure. This, effectively, creates another dimension in the 'tree node' space. The adapters at each node can be different or even null. Also, they may themselves, define other adapters at their nodes.


Field Summary
 
Fields inherited from interface com.citra.treetable.TreeTableModelAdapterIF
TREE_PROPERTY, TREE_TABLE_MODEL_PROPERTY
 
Fields inherited from interface com.citra.pivot.PivotConstants
GRAND_TOTAL_TYPE, NORMAL_TYPE, SUBTOTAL_TYPE
 
Method Summary
 PivotRowAdapter getAdapter(TreePath path)
          Returns the adapter at the specified tree path.
 int getAdapterDepth()
          Retrieves the maximum number of adapters beneath this one.
 int getPivotType(TreePath path)
          Returns the type of the specified path.
 boolean isIndependent()
          Determines whether the adapter remains unaffected by the presence of next level adapters.
 
Methods inherited from interface com.citra.treetable.TreeTableModelAdapterIF
addPropertyChangeListener, getTree, getTreeTableModel, removePropertyChangeListener
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getAdapter

PivotRowAdapter getAdapter(TreePath path)
Returns the adapter at the specified tree path.

Parameters:
path - the given path
Returns:
the adapter at that path

getAdapterDepth

int getAdapterDepth()
Retrieves the maximum number of adapters beneath this one.

Returns:
the maximum number of adapters beneath this one

getPivotType

int getPivotType(TreePath path)
Returns the type of the specified path. The type is used by visualization classes, such as PivotTable, in order to group cells together accordingly.
The type is taken from the PivotConstants interface and may be:
NORMAL_PIVOT_TYPE: a normal cell
SUMMARY_PIVOT_TYPE: a summary cell

Parameters:
path - the given path
Returns:
the path's type

isIndependent

boolean isIndependent()
Determines whether the adapter remains unaffected by the presence of next level adapters. An adapter that is independent should return the same adapter for every node.

Returns:
true if independent, false otherwise

Copyright © 2011 Citra Technologies. All Rights Reserved.