edu.umd.cs.jazz.event
Interface ZNodeListener
- All Superinterfaces:
- java.util.EventListener
- All Known Implementing Classes:
-
ZDefaultScrollDirector, ZNodeAdapter
- public interface ZNodeListener
- extends java.util.EventListener
ZNodeListener is an interface to support notification when changes occur to a ZNode. Based on Swing's ComponentListener.
The class that is interested in processing a node 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 state 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; Jazz will automatically handle ZNode state changes internally so that everything works properly regardless of whether a program registers a ZNodeListener
or not.
- Author:
- Ben Bederson
- See Also:
-
ZNodeAdapter
, ZNodeEvent
boundsChanged
public void boundsChanged(ZNodeEvent e)
-
Invoked when a node has its bounds changed.
-
-
globalBoundsChanged
public void globalBoundsChanged(ZNodeEvent e)
-
Invoked when a node has its global bounds changed.
-
-
Copyright � 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.