APIdia Launch Partner
Top Description Methods
javax.swing.event

public Interface TreeExpansionListener

extends EventListener
Known Direct Implementers
javax.swing.plaf.basic.BasicTreeUI.TreeExpansionHandler, javax.swing.plaf.basic.BasicTreeUI.Handler, javax.swing.JTree.AccessibleJTree
Imports
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.
Author
Scott Violet

Method Summary

Modifier and TypeMethod and Description
public void
treeCollapsed(TreeExpansionEvent
a TreeExpansionEvent containing a TreePath object for the collapsed node
event
)

Called whenever an item in the tree has been collapsed.

public void
treeExpanded(TreeExpansionEvent
a TreeExpansionEvent containing a TreePath object for the expanded node
event
)

Called whenever an item in the tree has been expanded.

Method Detail

treeCollapsedback to summary
public void treeCollapsed(TreeExpansionEvent event)

Called whenever an item in the tree has been collapsed.

Parameters
event:TreeExpansionEvent

a TreeExpansionEvent containing a TreePath object for the collapsed node

treeExpandedback to summary
public void treeExpanded(TreeExpansionEvent event)

Called whenever an item in the tree has been expanded.

Parameters
event:TreeExpansionEvent

a TreeExpansionEvent containing a TreePath object for the expanded node