kiwi.event
Class HierarchicalAssociationEvent
java.lang.Object
|
+--java.util.EventObject
|
+--kiwi.event.HierarchicalAssociationEvent
- public class HierarchicalAssociationEvent
- extends EventObject
A hierarchical association event. These events are used by objects that
are members of a hierarchical data structure to notify listeners when
their relationships with their ancestor and/or descendant objects have
changed.
- Version:
- 1.0 (05/98)
- Author:
- Mark Lindner, PING Software Group
- See Also:
HierarchicalAssociationListener
, Serialized Form
Method Summary |
int |
getIndex()
Get the offset (index) for this event.For insertions, this is the
position at which the item is being inserted; for deletions, it's the
position of the item that is being removed. |
Object |
getNode()
Get the node associated with this event. |
Object |
getParent()
Get the parent of the node associated with this event. |
HierarchicalAssociationEvent
public HierarchicalAssociationEvent(Object source,
Object node,
int index,
Object parent)
- Construct a new
HierarchicalAssociationEvent
.
- Parameters:
source
- The source of the event.item
- The node associated with this event.index
- For insertions, the position at which the item will be
inserted; for deletions, the position of the item being removed.parent
- The parent node of node
.
HierarchicalAssociationEvent
public HierarchicalAssociationEvent(Object source,
Object node,
Object parent)
- Construct a new
HierarchicalAssociationEvent
. The index is
set to 0.
- Parameters:
source
- The source of the event.item
- The node associated with this event.parent
- The parent node of node
.
HierarchicalAssociationEvent
public HierarchicalAssociationEvent(Object source,
Object node)
- Construct a new
HierarchicalAssociationEvent
. The index is
set to 0, and the parent is set to null.
- Parameters:
source
- The source of the event.item
- The node associated with this event.
getNode
public Object getNode()
- Get the node associated with this event.
getParent
public Object getParent()
- Get the parent of the node associated with this event.
getIndex
public int getIndex()
- Get the offset (index) for this event.For insertions, this is the
position at which the item is being inserted; for deletions, it's the
position of the item that is being removed.