Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot
Interface PivotColumnAdapter

All Superinterfaces:
PivotConstants, TableColumnModel, TreeTableColumnModelAdapter
All Known Subinterfaces:
OlapColumnAdapter
All Known Implementing Classes:
DefaultPivotColumnAdapter

public interface PivotColumnAdapter
extends TreeTableColumnModelAdapter, PivotConstants

PivotColumnAdapter is a TreeTableColumnModelAdapter 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.table.group.TreeTableColumnModelAdapter
TREE_PROPERTY, TREE_TABLE_COLUMN_MODEL_PROPERTY
 
Fields inherited from interface com.citra.pivot.PivotConstants
GRAND_TOTAL_TYPE, NORMAL_TYPE, SUBTOTAL_TYPE
 
Method Summary
 void addColumnInvalidatorListener(ColumnInvalidatorListener x)
          Adds a listener that is notified when the columns of the model were changed (via additions or removals).
 PivotColumnAdapter 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.
 void removeColumnInvalidatorListener(ColumnInvalidatorListener x)
          Removes a listener that is notified when the columns of the model were changed (via additions or removals).
 
Methods inherited from interface com.citra.table.group.TreeTableColumnModelAdapter
addPropertyChangeListener, getTree, getTreeTableColumnModel, removePropertyChangeListener
 
Methods inherited from interface javax.swing.table.TableColumnModel
addColumn, addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumns, getColumnSelectionAllowed, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel
 

Method Detail

addColumnInvalidatorListener

void addColumnInvalidatorListener(ColumnInvalidatorListener x)
Adds a listener that is notified when the columns of the model were changed (via additions or removals).

Parameters:
x - the listener to be added

getAdapter

PivotColumnAdapter 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

removeColumnInvalidatorListener

void removeColumnInvalidatorListener(ColumnInvalidatorListener x)
Removes a listener that is notified when the columns of the model were changed (via additions or removals).

Parameters:
x - the listener to be removed

Copyright © 2011 Citra Technologies. All Rights Reserved.