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
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.
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.