NextApp Echo3 Extras
v3.0.b4

nextapp.echo.extras.app.tree
Class DefaultTreeColumnModel

java.lang.Object
  extended by nextapp.echo.extras.app.tree.DefaultTreeColumnModel
All Implemented Interfaces:
java.io.Serializable, TreeColumnModel

public class DefaultTreeColumnModel
extends java.lang.Object
implements java.io.Serializable, TreeColumnModel

The default TreeColumnModel implementation.

See Also:
Serialized Form

Field Summary
protected  nextapp.echo.app.event.EventListenerList listenerList
          A listener storage facility.
 
Constructor Summary
DefaultTreeColumnModel()
          Creates a new DefaultTreeColumnModel.
 
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.
protected  void fireColumnAdded(TreeColumnModelEvent e)
          Notifies TreeColumnModelListeners that a column was added.
protected  void fireColumnMoved(TreeColumnModelEvent e)
          Notifies TreeColumnModelListeners that a column was moved.
protected  void fireColumnRemoved(TreeColumnModelEvent e)
          Notifies TreeColumnModelListeners that a column was removed.
protected  void fireColumnResized(TreeColumnModelEvent e)
          Notifies TreeColumnModelListeners that a column was resized.
 TreeColumn getColumn(int index)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected nextapp.echo.app.event.EventListenerList listenerList
A listener storage facility.

Constructor Detail

DefaultTreeColumnModel

public DefaultTreeColumnModel()
Creates a new DefaultTreeColumnModel.

Method Detail

addColumn

public void addColumn(TreeColumn column)
Description copied from interface: TreeColumnModel
Adds a tree column to the end of the model.

Specified by:
addColumn in interface TreeColumnModel
Parameters:
column - the column to add
See Also:
TreeColumnModel.addColumn(nextapp.echo.extras.app.tree.TreeColumn)

addColumnModelListener

public void addColumnModelListener(TreeColumnModelListener l)
Description copied from interface: TreeColumnModel
Adds a listener to be notified of updates to this TreeColumnModel.

Specified by:
addColumnModelListener in interface TreeColumnModel
Parameters:
l - the listener to add
See Also:
TreeColumnModel.addColumnModelListener(nextapp.echo.extras.app.event.TreeColumnModelListener)

fireColumnAdded

protected void fireColumnAdded(TreeColumnModelEvent e)
Notifies TreeColumnModelListeners that a column was added.

Parameters:
e - the TreeColumnModelEvent to fire

fireColumnMoved

protected void fireColumnMoved(TreeColumnModelEvent e)
Notifies TreeColumnModelListeners that a column was moved.

Parameters:
e - the TreeColumnModelEvent to fire

fireColumnRemoved

protected void fireColumnRemoved(TreeColumnModelEvent e)
Notifies TreeColumnModelListeners that a column was removed.

Parameters:
e - the TreeColumnModelEvent to fire

fireColumnResized

protected void fireColumnResized(TreeColumnModelEvent e)
Notifies TreeColumnModelListeners that a column was resized.

Parameters:
e - the TreeColumnModelEvent to fire

getColumn

public TreeColumn getColumn(int index)
Description copied from interface: TreeColumnModel
Returns the TreeColumn at the specified index.

Specified by:
getColumn in interface TreeColumnModel
Parameters:
index - the index
Returns:
the column
See Also:
TreeColumnModel.getColumn(int)

getColumnCount

public int getColumnCount()
Description copied from interface: TreeColumnModel
Returns the number of columns in the column model.

Specified by:
getColumnCount in interface TreeColumnModel
Returns:
the number of columns
See Also:
TreeColumnModel.getColumnCount()

getColumnIndex

public int getColumnIndex(java.lang.Object identifier)
Description copied from interface: TreeColumnModel
Returns the index of the tree column with the given identifier.

Specified by:
getColumnIndex in interface TreeColumnModel
Parameters:
identifier - the identifier
Returns:
the index
See Also:
TreeColumnModel.getColumnIndex(java.lang.Object)

getColumns

public java.util.Iterator getColumns()
Description copied from interface: TreeColumnModel
Returns an Iterator over the columns of the column model.

Specified by:
getColumns in interface TreeColumnModel
Returns:
the Iterator
See Also:
TreeColumnModel.getColumns()

moveColumn

public void moveColumn(int columnIndex,
                       int newIndex)
Description copied from interface: TreeColumnModel
Moves a tree column to a new index within the model.

Specified by:
moveColumn in interface TreeColumnModel
Parameters:
columnIndex - the index of the column to move
newIndex - the new index of the specified column
See Also:
TreeColumnModel.moveColumn(int, int)

removeColumn

public void removeColumn(TreeColumn column)
Description copied from interface: TreeColumnModel
Remove a tree column from the model.

Specified by:
removeColumn in interface TreeColumnModel
Parameters:
column - the column to remove
See Also:
TreeColumnModel.removeColumn(nextapp.echo.extras.app.tree.TreeColumn)

removeColumnModelListener

public void removeColumnModelListener(TreeColumnModelListener l)
Description copied from interface: TreeColumnModel
Removes a listener from being notified of updates to this TreeColumnModel.

Specified by:
removeColumnModelListener in interface TreeColumnModel
Parameters:
l - the listener to remove
See Also:
TreeColumnModel.removeColumnModelListener(nextapp.echo.extras.app.event.TreeColumnModelListener)

NextApp Echo3 Extras
v3.0.b4