edu.umd.cs.jazz.event
Interface ZGroupListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
ZGroupAdapter, ZSelectionResizeHandler, ZSpatialIndexGroup

public interface ZGroupListener
extends java.util.EventListener

ZGroupListener is an interface to support notification when changes occur to a ZGroup. Based on Swing's ComponentListener.

The class that is interested in processing a group event either implements this interface (and all the methods it contains) or extends the abstract ZGroupAdapter class (overriding only the methods of interest). The listener object created from that class is then registered with a ZGroup using the ZGroup's addGroupListener method. When the ZGroup's state changes, the relevant method in the listener object is invoked, and the ZGroupEvent is passed to it.

ZGroup events are provided for notification purposes ONLY; Jazz will automatically handle ZGroup state changes internally so that everything works properly regardless of whether a program registers a ZGroupListener or not.

Author:
Ben Bederson
See Also:
ZGroupAdapter, ZGroupEvent

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.
 

Method Detail

nodeAdded

public void nodeAdded(ZGroupEvent e)
Invoked when a node has been added to this group.

Parameters:
e - The group event.

nodeRemoved

public void nodeRemoved(ZGroupEvent e)
Invoked when a node has been removed from this group.

Parameters:
e - The group event.


Copyright 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.