javax.swing
Class JTree.TreeSelectionRedirector
java.lang.Object
javax.swing.JTree.TreeSelectionRedirector
- All Implemented Interfaces:
- Serializable, EventListener, TreeSelectionListener
- Enclosing class:
- JTree
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTree.TreeSelectionRedirector
protected JTree.TreeSelectionRedirector()
- Creates a new instance of TreeSelectionRedirector
valueChanged
public void valueChanged(TreeSelectionEvent ev)
- Notifies when the tree selection changes.
- Specified by:
valueChanged
in interface TreeSelectionListener
- Parameters:
ev
- the TreeSelectionEvent that describes the change