javax.swing
Class JTree.TreeSelectionRedirector

java.lang.Object
  extended by 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

Constructor Summary
protected JTree.TreeSelectionRedirector()
          Creates a new instance of TreeSelectionRedirector
 
Method Summary
 void valueChanged(TreeSelectionEvent ev)
          Notifies when the tree selection changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTree.TreeSelectionRedirector

protected JTree.TreeSelectionRedirector()
Creates a new instance of TreeSelectionRedirector

Method Detail

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