javax.swing
Class JTree.TreeSelectionRedirector

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.JTree.TreeSelectionRedirector
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , EventListener sample code for java.util.EventListener definition code for java.util.EventListener , TreeSelectionListener sample code for javax.swing.event.TreeSelectionListener definition code for javax.swing.event.TreeSelectionListener
Enclosing class:
JTree sample code for javax.swing.JTree definition code for javax.swing.JTree

protected class JTree.TreeSelectionRedirector
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable , TreeSelectionListener sample code for javax.swing.event.TreeSelectionListener definition code for javax.swing.event.TreeSelectionListener

Handles creating a new TreeSelectionEvent with the JTree as the source and passing it off to all the listeners.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
Serialized Form

Constructor Summary
protected JTree.TreeSelectionRedirector sample code for javax.swing.JTree.TreeSelectionRedirector.JTree.TreeSelectionRedirector() definition code for javax.swing.JTree.TreeSelectionRedirector.JTree.TreeSelectionRedirector() ()
           
 
Method Summary
 void valueChanged sample code for javax.swing.JTree.TreeSelectionRedirector.valueChanged(javax.swing.event.TreeSelectionEvent) definition code for javax.swing.JTree.TreeSelectionRedirector.valueChanged(javax.swing.event.TreeSelectionEvent) (TreeSelectionEvent sample code for javax.swing.event.TreeSelectionEvent definition code for javax.swing.event.TreeSelectionEvent  e)
          Invoked by the TreeSelectionModel when the selection changes.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

JTree.TreeSelectionRedirector sample code for javax.swing.JTree.TreeSelectionRedirector() definition code for javax.swing.JTree.TreeSelectionRedirector()

protected JTree.TreeSelectionRedirector()
Method Detail

valueChanged sample code for javax.swing.JTree.TreeSelectionRedirector.valueChanged(javax.swing.event.TreeSelectionEvent) definition code for javax.swing.JTree.TreeSelectionRedirector.valueChanged(javax.swing.event.TreeSelectionEvent)

public void valueChanged(TreeSelectionEvent sample code for javax.swing.event.TreeSelectionEvent definition code for javax.swing.event.TreeSelectionEvent  e)
Invoked by the TreeSelectionModel when the selection changes.

Specified by:
valueChanged sample code for javax.swing.event.TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent) definition code for javax.swing.event.TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent) in interface TreeSelectionListener sample code for javax.swing.event.TreeSelectionListener definition code for javax.swing.event.TreeSelectionListener
Parameters:
e - the TreeSelectionEvent generated by the TreeSelectionModel