edu.umd.cs.jazz.event
Class ZNodeContainerAdapter

java.lang.Object
  |
  +--edu.umd.cs.jazz.event.ZNodeContainerAdapter

public class ZNodeContainerAdapter
extends java.lang.Object
implements ZNodeContainerListener

An abstract adapter class for receiving ZNodeContainer events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a ZNodeContainerEvent listener and override the methods for the events of interest. (If you implement the ZNodeContainerListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a node using the node's addNodeContainerListener method. When the container's contents change because a node has been added or removed, the relevant method in the listener object is invoked, and the ZNodeContainerEvent is passed to it.

Based on Swing's ContainerAdapter class.

See Also:
ZNodeContainerAdapter, ZNodeContainerEvent

Constructor Summary
ZNodeContainerAdapter()
           
 
Method Summary
 void nodeAdded(ZNodeContainerEvent e)
          Invoked when a node has been added to this node.
 void nodeRemoved(ZNodeContainerEvent e)
          Invoked when a node has been removed from this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZNodeContainerAdapter

public ZNodeContainerAdapter()
Method Detail

nodeAdded

public void nodeAdded(ZNodeContainerEvent e)
Invoked when a node has been added to this node.
Specified by:
nodeAdded in interface ZNodeContainerListener

nodeRemoved

public void nodeRemoved(ZNodeContainerEvent e)
Invoked when a node has been removed from this node.
Specified by:
nodeRemoved in interface ZNodeContainerListener