Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing
Class JTree.TreeSelectionRedirector  view JTree.TreeSelectionRedirector download JTree.TreeSelectionRedirector.java

java.lang.Object
  extended byjavax.swing.JTree.TreeSelectionRedirector
All Implemented Interfaces:
java.util.EventListener, java.io.Serializable, javax.swing.event.TreeSelectionListener
Enclosing class:
JTree

protected class JTree.TreeSelectionRedirector
extends java.lang.Object
implements javax.swing.event.TreeSelectionListener, java.io.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.


Field Summary
private static long serialVersionUID
          The serial version UID.
 
Constructor Summary
protected JTree.TreeSelectionRedirector()
          Creates a new instance of TreeSelectionRedirector
 
Method Summary
 void valueChanged(javax.swing.event.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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serial version UID.

See Also:
Constant Field Values
Constructor Detail

JTree.TreeSelectionRedirector

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

Method Detail

valueChanged

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

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener