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

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LinearAssociationEvent(Object source, Object item)
          Construct a new LinearAssociationEvent.
LinearAssociationEvent(Object source, Object item, int index)
          Construct a new LinearAssociationEvent.
 
Method Summary
 int getIndex()
          Get the offset (index) for this event.
 Object getItem()
          Get 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

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

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.