JSR-209 (Final Release)

javax.swing.event
Interface TreeExpansionListener

All Superinterfaces:
java.util.EventListener

public interface TreeExpansionListener
extends java.util.EventListener

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


Method Summary
 void treeCollapsed(TreeExpansionEvent event)
          Called whenever an item in the tree has been collapsed.
 void treeExpanded(TreeExpansionEvent event)
          Called whenever an item in the tree has been expanded.
 

Method Detail

treeExpanded

public void treeExpanded(TreeExpansionEvent event)
Called whenever an item in the tree has been expanded.


treeCollapsed

public void treeCollapsed(TreeExpansionEvent event)
Called whenever an item in the tree has been collapsed.


JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.