javax.swing.event
Interface TreeWillExpandListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener

public interface TreeWillExpandListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

The listener that's notified when a tree expands or collapses a node. For further information and examples see How to Write a Tree-Will-Expand Listener, a section in The Java Tutorial.


Method Summary
 void treeWillCollapse sample code for javax.swing.event.TreeWillExpandListener.treeWillCollapse(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeWillExpandListener.treeWillCollapse(javax.swing.event.TreeExpansionEvent) (TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
          Invoked whenever a node in the tree is about to be collapsed.
 void treeWillExpand sample code for javax.swing.event.TreeWillExpandListener.treeWillExpand(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeWillExpandListener.treeWillExpand(javax.swing.event.TreeExpansionEvent) (TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
          Invoked whenever a node in the tree is about to be expanded.
 

Method Detail

treeWillExpand sample code for javax.swing.event.TreeWillExpandListener.treeWillExpand(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeWillExpandListener.treeWillExpand(javax.swing.event.TreeExpansionEvent)

void treeWillExpand(TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
                    throws ExpandVetoException sample code for javax.swing.tree.ExpandVetoException definition code for javax.swing.tree.ExpandVetoException 
Invoked whenever a node in the tree is about to be expanded.

Throws:
ExpandVetoException sample code for javax.swing.tree.ExpandVetoException definition code for javax.swing.tree.ExpandVetoException

treeWillCollapse sample code for javax.swing.event.TreeWillExpandListener.treeWillCollapse(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeWillExpandListener.treeWillCollapse(javax.swing.event.TreeExpansionEvent)

void treeWillCollapse(TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
                      throws ExpandVetoException sample code for javax.swing.tree.ExpandVetoException definition code for javax.swing.tree.ExpandVetoException 
Invoked whenever a node in the tree is about to be collapsed.

Throws:
ExpandVetoException sample code for javax.swing.tree.ExpandVetoException definition code for javax.swing.tree.ExpandVetoException