edu.umd.cs.jazz.event
Interface ZNodeListener

All Known Implementing Classes:
ZNodeAdapter

public abstract interface ZNodeListener
extends java.util.EventListener

ZNodeListener

Interface to support notification when changes occur to a ZNode. Based on Swing's ComponentListener.

The listener interface for receiving ZNode events. The class that is interested in processing a ZNode event either implements this interface (and all the methods it contains) or extends the abstract ZNodeAdapter class (overriding only the methods of interest). The listener object created from that class is then registered with a ZNode using the ZNode's addNodeListener method. When the ZNode's size, location, or visibility changes, the relevant method in the listener object is invoked, and the ZNodeEvent is passed to it.

ZNode events are provided for notification purposes ONLY; The AWT will automatically handle ZNode transforms internally so that GUI layout works properly regardless of whether a program registers a ZNodeListener or not.

See Also:
ZNodeAdapter, ZNodeEvent

Method Summary
 void nodeHidden(ZNodeEvent e)
          Invoked when the node has been made invisible.
 void nodeShown(ZNodeEvent e)
          Invoked when the node has been made visible.
 void nodeTransformed(ZNodeEvent e)
          Invoked when the node's transform changes.
 

Method Detail

nodeTransformed

public void nodeTransformed(ZNodeEvent e)
Invoked when the node's transform changes.

nodeShown

public void nodeShown(ZNodeEvent e)
Invoked when the node has been made visible.

nodeHidden

public void nodeHidden(ZNodeEvent e)
Invoked when the node has been made invisible.