kiwi.event
Class HierarchicalAssociationSupport

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

public class HierarchicalAssociationSupport
extends Object

A support object for generating HierarchicalSssociationEvents.

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

Constructor Summary
HierarchicalAssociationSupport(Object source)
          Construct a new HierarchicalAssociationSupport object.
 
Method Summary
 void addHierarchicalAssociationListener(HierarchicalAssociationListener listener)
          Add a HierarchicalAssociationListener to this object's list of listeners.
 void fireNodeAdded(Object node, int index, Object parent)
          Fire a node added event.
 void fireNodeChanged(Object node)
          Fire a node changed event.
 void fireNodeRemoved(Object node, int index, Object parent)
          Fire a node removed event.
 void fireNodeStructureChanged(Object node)
          Fire a node structure changed event.
 void removeHierarchicalAssociationListener(HierarchicalAssociationListener listener)
          Remove a HierarchicalAssociationListener 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

HierarchicalAssociationSupport

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

addHierarchicalAssociationListener

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

removeHierarchicalAssociationListener

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

fireNodeAdded

public void fireNodeAdded(Object node,
                          int index,
                          Object parent)
Fire a node added event.
Parameters:
node - The node being added.
index - The offset at which this node will be inserted in the parent object's list of children.
parent - The object to which this child is being added.

fireNodeRemoved

public void fireNodeRemoved(Object node,
                            int index,
                            Object parent)
Fire a node removed event.
Parameters:
node - The node being removed.
index - The offset of the node within its parent object's list of children.
The - object from which this child is being removed.

fireNodeChanged

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

fireNodeStructureChanged

public void fireNodeStructureChanged(Object node)
Fire a node structure changed event. This event is used to notify listeners that the subtree rooted at this node has undergone a substantial structural change.
Parameters:
node - The node that is the root of the subtree that changed.