Jazz API Documentation

edu.umd.cs.jazz.event
Class ZGroupAdapter

java.lang.Object
  |
  +--edu.umd.cs.jazz.event.ZGroupAdapter
All Implemented Interfaces:
java.util.EventListener, java.io.Serializable, ZGroupListener

public class ZGroupAdapter
extends java.lang.Object
implements ZGroupListener, java.io.Serializable

ZGroupAdapater is an abstract adapter class for receiving group events. The methods in this class are empty. This class exists as convenience for creating listener objects. Based on Swing's ComponentListener.

Extend this class to create a ZGroupEvent listener and override the methods for the events of interest. (If you implement the ZGroupListener 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 your class and then register it with a group using the group's addGroupListener method. When the group's state changes, the relevant method in the listener object is invoked, and the ZGroupEvent is passed to it.

See Also:
ZGroupAdapter, ZGroupEvent, Serialized Form

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

Constructor Detail

ZGroupAdapter

public ZGroupAdapter()
Method Detail

nodeAdded

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

nodeRemoved

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

Jazz API Documentation