edu.umd.cs.jazz.event
Class ZAncestorNotifier

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

public class ZAncestorNotifier
extends java.lang.Object
implements ZNodeContainerListener

Supports processing of ZAncestorEvents. Based on Swing's AncestorNotifier.


Field Summary
 javax.swing.event.EventListenerList listenerList
           
 
Constructor Summary
ZAncestorNotifier(ZNode root)
           
 
Method Summary
 void addAncestorListener(ZAncestorListener l)
           
protected  void fireAncestorAdded(ZNode source, int id, ZNode ancestor, ZNode ancestorParent)
           
protected  void fireAncestorRemoved(ZNode source, int id, ZNode ancestor, ZNode ancestorParent)
           
protected  void fireAncestorTransformed(ZNode source, int id, ZNode ancestor, ZNode ancestorParent)
           
 void nodeAdded(ZNodeContainerEvent e)
           
 void nodeRemoved(ZNodeContainerEvent e)
           
 void removeAllListeners()
           
 void removeAncestorListener(ZAncestorListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

public javax.swing.event.EventListenerList listenerList
Constructor Detail

ZAncestorNotifier

public ZAncestorNotifier(ZNode root)
Method Detail

addAncestorListener

public void addAncestorListener(ZAncestorListener l)

removeAncestorListener

public void removeAncestorListener(ZAncestorListener l)

fireAncestorAdded

protected void fireAncestorAdded(ZNode source,
                                 int id,
                                 ZNode ancestor,
                                 ZNode ancestorParent)

fireAncestorRemoved

protected void fireAncestorRemoved(ZNode source,
                                   int id,
                                   ZNode ancestor,
                                   ZNode ancestorParent)

fireAncestorTransformed

protected void fireAncestorTransformed(ZNode source,
                                       int id,
                                       ZNode ancestor,
                                       ZNode ancestorParent)

removeAllListeners

public void removeAllListeners()

nodeAdded

public void nodeAdded(ZNodeContainerEvent e)
Specified by:
nodeAdded in interface ZNodeContainerListener

nodeRemoved

public void nodeRemoved(ZNodeContainerEvent e)
Specified by:
nodeRemoved in interface ZNodeContainerListener