kiwi.event
Class LinearAssociationSupport

java.lang.Object
  |
  +--kiwi.event.LinearAssociationSupport

public class LinearAssociationSupport
extends Object

A support object for generating LinearAssociationEvents.

Version:
1.0 (05/98)
Author:
Mark Lindner, PING Software Group
See Also:
LinearAssociationEvent

Constructor Summary
LinearAssociationSupport(Object source)
          Construct a new LinearAssociationSupport object.
 
Method Summary
 void addLinearAssociationListener(LinearAssociationListener listener)
          Add a LinearAssociationListener to this object's list of listeners.
 void fireItemAdded(Object item, int index)
          Fire an item added event.
 void fireItemChanged(Object item)
          Fire an item changed event.
 void fireItemRemoved(Object item, int index)
          Fire an item removed event.
 void removeLinearAssociationListener(LinearAssociationListener listener)
          Remove a LinearAssociationListener from this object's list of listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearAssociationSupport

public LinearAssociationSupport(Object source)
Construct a new LinearAssociationSupport object.
Parameters:
source - The owner of this object (and the source of the events that will be generated by it).
Method Detail

addLinearAssociationListener

public void addLinearAssociationListener(LinearAssociationListener listener)
Add a LinearAssociationListener to this object's list of listeners.
Parameters:
listener - The listener to add.

removeLinearAssociationListener

public void removeLinearAssociationListener(LinearAssociationListener listener)
Remove a LinearAssociationListener from this object's list of listeners.
Parameters:
listener - The listener to remove.

fireItemAdded

public void fireItemAdded(Object item,
                          int index)
Fire an item added event.
Parameters:
item - The item being added.
index - The offset at which this item will be inserted.

fireItemRemoved

public void fireItemRemoved(Object item,
                            int index)
Fire an item removed event.
Parameters:
item - The item being removed.
index - The offset (index) of this item.

fireItemChanged

public void fireItemChanged(Object item)
Fire an item changed event. This event is used to notify listeners that an item changed its state in some perceptible way.
Parameters:
item - The item that changed.