Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.table.group
Interface TreeTableColumnModel

All Superinterfaces:
TreeModel
All Known Implementing Classes:
DefaultTreeTableColumnModel, TreeColumnModelMask, TreeTableColumnModelMap, TreeTableColumnModelMask

public interface TreeTableColumnModel
extends TreeModel

TreeTableColumnModel is an interface that defines the structure of a hierarchical column model.

Since:
3.4

Method Summary
 void addColumnInvalidatorListener(ColumnInvalidatorListener x)
          Adds a listener that is notified when the columns of the model were changed (via additions or removals).
 TableColumn getColumn(Object node)
          Returns the table column at the specified node.
 Object insertColumnInto(TableColumn aColumn, Object columnNode, Object parentNode, int index)
          Inserts a table column at the specified node's index.
 void removeColumnFrom(Object node)
          Removes a node from the model.
 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 javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

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

getColumn

TableColumn getColumn(Object node)
Returns the table column at the specified node.

Returns:
the table column

insertColumnInto

Object insertColumnInto(TableColumn aColumn,
                        Object columnNode,
                        Object parentNode,
                        int index)
Inserts a table column at the specified node's index.

Parameters:
aColumn - the table column to insert
columnNode - the node that 'contains' the column. If this is null, a new node should be created.
parentNode - the node under which the column is to be inserted
index - the parent node's index to insert the column into
Returns:
the newly created node or columnNode if this wasn't null

removeColumnFrom

void removeColumnFrom(Object node)
Removes a node from the model. The node presumably 'contains' a table column.

Parameters:
node - the node at which the column is found

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.