kiwi.event
Class TreeModelEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--kiwi.event.TreeModelEvent

public class TreeModelEvent
extends EventObject

Event generated by an ITreeModel to notify its listeners that the structure or state of the hierarchical data structure has changed in some way.

Version:
1.0 (05/98)
Author:
Mark Lindner, PING Software Group
See Also:
ITreeModel, TreeModelListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TreeModelEvent(Object source, ITreeNode node)
          Construct a new TreeModelEvent.
TreeModelEvent(Object source, ITreeNode node, int index, ITreeNode parent)
          Construct a new TreeModelEvent.
TreeModelEvent(Object source, ITreeNode node, ITreeNode parent)
          Construct a new TreeModelEvent.
 
Method Summary
 int getIndex()
          Get the offset (index) for this event.
 ITreeNode getNode()
          Get the node object for this event.
 ITreeNode getParent()
          Get the parent of the object associated with this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeModelEvent

public TreeModelEvent(Object source,
                      ITreeNode node,
                      int index,
                      ITreeNode parent)
Construct a new TreeModelEvent.
Parameters:
source - The source of the event.
node - The node associated with this event.
index - The index of the node within its parent's list of children.
parent - The parent object of the node.

TreeModelEvent

public TreeModelEvent(Object source,
                      ITreeNode node,
                      ITreeNode parent)
Construct a new TreeModelEvent. The index is set to 0.
Parameters:
source - The source of the event.
node - The node associated with this event.
parent - The parent object of the node.

TreeModelEvent

public TreeModelEvent(Object source,
                      ITreeNode node)
Construct a new TreeModelEvent. The index is set to 0. The parent is set to null.
Parameters:
source - The source of the event.
node - The node associated with this event.
Method Detail

getNode

public ITreeNode getNode()
Get the node object for this event.

getParent

public ITreeNode getParent()
Get the parent of the object associated with this event.

getIndex

public int getIndex()
Get the offset (index) for this event.