javax.swing

Class JTree.TreeSelectionRedirector

protected class JTree.TreeSelectionRedirector extends Object implements TreeSelectionListener, Serializable

This redirects TreeSelectionEvents and rewrites the source of it to be this JTree. This is typically done when the tree model generates an event, but the JTree object associated with that model should be listed as the actual source of the event.
Constructor Summary
protected TreeSelectionRedirector()
Creates a new instance of TreeSelectionRedirector
Method Summary
voidvalueChanged(TreeSelectionEvent ev)
Notifies when the tree selection changes.

Constructor Detail

TreeSelectionRedirector

protected TreeSelectionRedirector()
Creates a new instance of TreeSelectionRedirector

Method Detail

valueChanged

public void valueChanged(TreeSelectionEvent ev)
Notifies when the tree selection changes.

Parameters: ev the TreeSelectionEvent that describes the change