javax.swing.event
Interface TreeExpansionListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
BasicTreeUI.TreeExpansionHandler sample code for javax.swing.plaf.basic.BasicTreeUI.TreeExpansionHandler definition code for javax.swing.plaf.basic.BasicTreeUI.TreeExpansionHandler , JTree.AccessibleJTree sample code for javax.swing.JTree.AccessibleJTree definition code for javax.swing.JTree.AccessibleJTree

public interface TreeExpansionListener
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 documentation and examples see How to Write a Tree Expansion Listener, a section in The Java Tutorial.


Method Summary
 void treeCollapsed sample code for javax.swing.event.TreeExpansionListener.treeCollapsed(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeExpansionListener.treeCollapsed(javax.swing.event.TreeExpansionEvent) (TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
          Called whenever an item in the tree has been collapsed.
 void treeExpanded sample code for javax.swing.event.TreeExpansionListener.treeExpanded(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeExpansionListener.treeExpanded(javax.swing.event.TreeExpansionEvent) (TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
          Called whenever an item in the tree has been expanded.
 

Method Detail

treeExpanded sample code for javax.swing.event.TreeExpansionListener.treeExpanded(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeExpansionListener.treeExpanded(javax.swing.event.TreeExpansionEvent)

void treeExpanded(TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
Called whenever an item in the tree has been expanded.


treeCollapsed sample code for javax.swing.event.TreeExpansionListener.treeCollapsed(javax.swing.event.TreeExpansionEvent) definition code for javax.swing.event.TreeExpansionListener.treeCollapsed(javax.swing.event.TreeExpansionEvent)

void treeCollapsed(TreeExpansionEvent sample code for javax.swing.event.TreeExpansionEvent definition code for javax.swing.event.TreeExpansionEvent  event)
Called whenever an item in the tree has been collapsed.