NextApp Echo3 Extras
v3.0.b4

nextapp.echo.extras.app.tree
Interface TreeColumnModel

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultTreeColumnModel

public interface TreeColumnModel
extends java.io.Serializable

A representation of the collection of TreeColumns of a Tree.


Method Summary
 void addColumn(TreeColumn column)
          Adds a tree column to the end of the model.
 void addColumnModelListener(TreeColumnModelListener l)
          Adds a listener to be notified of updates to this TreeColumnModel.
 TreeColumn getColumn(int columnIndex)
          Returns the TreeColumn at the specified index.
 int getColumnCount()
          Returns the number of columns in the column model.
 int getColumnIndex(java.lang.Object identifier)
          Returns the index of the tree column with the given identifier.
 java.util.Iterator getColumns()
          Returns an Iterator over the columns of the column model.
 void moveColumn(int columnIndex, int newIndex)
          Moves a tree column to a new index within the model.
 void removeColumn(TreeColumn column)
          Remove a tree column from the model.
 void removeColumnModelListener(TreeColumnModelListener l)
          Removes a listener from being notified of updates to this TreeColumnModel.
 

Method Detail

addColumn

void addColumn(TreeColumn column)
Adds a tree column to the end of the model.

Parameters:
column - the column to add

addColumnModelListener

void addColumnModelListener(TreeColumnModelListener l)
Adds a listener to be notified of updates to this TreeColumnModel.

Parameters:
l - the listener to add

getColumn

TreeColumn getColumn(int columnIndex)
Returns the TreeColumn at the specified index.

Parameters:
columnIndex - the index
Returns:
the column

getColumnCount

int getColumnCount()
Returns the number of columns in the column model.

Returns:
the number of columns

getColumnIndex

int getColumnIndex(java.lang.Object identifier)
Returns the index of the tree column with the given identifier.

Parameters:
identifier - the identifier
Returns:
the index
Throws:
java.lang.IllegalArgumentException - if the value of identifier is null or if the no column was found with the given identifier

getColumns

java.util.Iterator getColumns()
Returns an Iterator over the columns of the column model.

Returns:
the Iterator

moveColumn

void moveColumn(int columnIndex,
                int newIndex)
Moves a tree column to a new index within the model.

Parameters:
columnIndex - the index of the column to move
newIndex - the new index of the specified column

removeColumn

void removeColumn(TreeColumn column)
Remove a tree column from the model.

Parameters:
column - the column to remove

removeColumnModelListener

void removeColumnModelListener(TreeColumnModelListener l)
Removes a listener from being notified of updates to this TreeColumnModel.

Parameters:
l - the listener to remove

NextApp Echo3 Extras
v3.0.b4