edu.umd.cs.jazz.event
Interface ZAncestorListener


public abstract interface ZAncestorListener
extends java.util.EventListener

ZAncestorListener Interface to support notification when changes occur to a ZNode or one of its ancestors. Based on Swing's AncestorListener.


Method Summary
 void ancestorAdded(ZAncestorEvent event)
          Called when the node or one of its ancestors is made visible either by setVisible(true) being called or by its being added to the node hierarchy.
 void ancestorRemoved(ZAncestorEvent event)
          Called when the node or one of its ancestors is made invisible either by setVisible(false) being called or by its being remove from the node hierarchy.
 void ancestorTransformed(ZAncestorEvent event)
          Called when either the node or one of its ancestors is transformed
 

Method Detail

ancestorAdded

public void ancestorAdded(ZAncestorEvent event)
Called when the node or one of its ancestors is made visible either by setVisible(true) being called or by its being added to the node hierarchy. The method is only called if the node has actually become visible. For this to be true all its parents must be visible, and it is in a rooted hierarchy.

ancestorRemoved

public void ancestorRemoved(ZAncestorEvent event)
Called when the node or one of its ancestors is made invisible either by setVisible(false) being called or by its being remove from the node hierarchy. The method is only called if the node has actually become invisible. For this to be true at least one of its parents must by invisible or it is not in a rooted hierarchy.

ancestorTransformed

public void ancestorTransformed(ZAncestorEvent event)
Called when either the node or one of its ancestors is transformed