NextApp Echo3 Extras
v3.0.b4

nextapp.echo.extras.app.tree
Class AbstractTreeModel

java.lang.Object
  extended by nextapp.echo.extras.app.tree.AbstractTreeModel
All Implemented Interfaces:
TreeModel

public abstract class AbstractTreeModel
extends java.lang.Object
implements TreeModel


Field Summary
protected  nextapp.echo.app.event.EventListenerList listenerList
           
 
Constructor Summary
AbstractTreeModel()
           
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
           
protected  void fireTreeNodesChanged(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
          Notifies all listeners that have registered interest for notification on this event type.
protected  void fireTreeNodesInserted(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
          Notifies all listeners that have registered interest for notification on this event type.
protected  void fireTreeNodesRemoved(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
          Notifies all listeners that have registered interest for notification on this event type.
protected  void fireTreeStructureChanged(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
          Notifies all listeners that have registered interest for notification on this event type.
 java.lang.Class getColumnClass(int column)
          Returns the type for column number column.
 java.lang.String getColumnName(int column)
          Returns column names using a "spreadsheet-style" convention, i.e., A, B, C...Y, Z, AA, AB, AC...
 void removeTreeModelListener(TreeModelListener l)
           
 void valueForPathChanged(TreePath path, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echo.extras.app.tree.TreeModel
getChild, getChildCount, getColumnCount, getIndexOfChild, getRoot, getValueAt, isLeaf
 

Field Detail

listenerList

protected nextapp.echo.app.event.EventListenerList listenerList
Constructor Detail

AbstractTreeModel

public AbstractTreeModel()
Method Detail

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
Specified by:
addTreeModelListener in interface TreeModel
See Also:
TreeModel.addTreeModelListener(nextapp.echo.extras.app.event.TreeModelListener)

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
Specified by:
removeTreeModelListener in interface TreeModel
See Also:
TreeModel.removeTreeModelListener(nextapp.echo.extras.app.event.TreeModelListener)

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                java.lang.Object newValue)
Specified by:
valueForPathChanged in interface TreeModel
See Also:
TreeModel.valueForPathChanged(nextapp.echo.extras.app.tree.TreePath, java.lang.Object)

getColumnName

public java.lang.String getColumnName(int column)
Returns column names using a "spreadsheet-style" convention, i.e., A, B, C...Y, Z, AA, AB, AC...

Specified by:
getColumnName in interface TreeModel
See Also:
TreeModel.getColumnName(int)

getColumnClass

public java.lang.Class getColumnClass(int column)
Description copied from interface: TreeModel
Returns the type for column number column.

Specified by:
getColumnClass in interface TreeModel
See Also:
TreeModel.getColumnClass(int)

fireTreeNodesChanged

protected void fireTreeNodesChanged(java.lang.Object source,
                                    java.lang.Object[] path,
                                    int[] childIndices,
                                    java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

Parameters:
source - the node being changed
path - the path to the root node
childIndices - the indices of the changed elements
children - the changed elements
See Also:
EventListenerList

fireTreeNodesInserted

protected void fireTreeNodesInserted(java.lang.Object source,
                                     java.lang.Object[] path,
                                     int[] childIndices,
                                     java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

Parameters:
source - the node where new elements are being inserted
path - the path to the root node
childIndices - the indices of the new elements
children - the new elements
See Also:
EventListenerList

fireTreeNodesRemoved

protected void fireTreeNodesRemoved(java.lang.Object source,
                                    java.lang.Object[] path,
                                    int[] childIndices,
                                    java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

Parameters:
source - the node where elements are being removed
path - the path to the root node
childIndices - the indices of the removed elements
children - the removed elements
See Also:
EventListenerList

fireTreeStructureChanged

protected void fireTreeStructureChanged(java.lang.Object source,
                                        java.lang.Object[] path,
                                        int[] childIndices,
                                        java.lang.Object[] children)
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

Parameters:
source - the node where the tree model has changed
path - the path to the root node
childIndices - the indices of the affected elements
children - the affected elements
See Also:
EventListenerList

NextApp Echo3 Extras
v3.0.b4