kiwi.event
Class LinearAssociationEvent
java.lang.Object
|
+--java.util.EventObject
|
+--kiwi.event.LinearAssociationEvent
- public class LinearAssociationEvent
- extends EventObject
A linear association event. These events are used by objects that are
members of a linear data structure to notify listeners when their
relationships with their peer objects have changed.
- Version:
- 1.0 (05/98)
- Author:
- Mark Lindner, PING Software Group
- See Also:
LinearAssociationListener
, Serialized Form
Method Summary |
int |
getIndex()
Get the offset (index) for this event. |
Object |
getItem()
Get the object associated with this event. |
LinearAssociationEvent
public LinearAssociationEvent(Object source,
Object item,
int index)
- Construct a new
LinearAssociationEvent
.
- Parameters:
source
- The source of the event.item
- The object 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.
LinearAssociationEvent
public LinearAssociationEvent(Object source,
Object item)
- Construct a new
LinearAssociationEvent
. The index is set to
0.
- Parameters:
source
- The source of the event.item
- The object associated with this event.
getItem
public Object getItem()
- Get the object associated with this event.
getIndex
public int getIndex()
- Get the offset (index) for this event. For insertions, the position at
which the item will be inserted; for deletions, the position of the item
being removed.