API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.event. TreeSelectionEvent View Source
Author(s)
Scott Violet
Since
Version
1.28 11/17/05
Serial
Hierarchy
 Object
      EventObject
          TreeSelectionEvent
Implements
Subclasses
Description
public class TreeSelectionEvent
  An event that characterizes a change in the current selection.
Constructors
public TreeSelectionEvent (Object source, TreePath paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
  Represents a change in the selection of a TreeSelectionModel.
public TreeSelectionEvent (Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)
  Represents a change in the selection of a TreeSelectionModel.
Methods
Hide/Show inherited methods
public Object cloneWithSource (Object newSource)
Returns a copy of the receiver, but with the source being newSource.
public TreePath getNewLeadSelectionPath ()
Returns the current lead path.
public TreePath getOldLeadSelectionPath ()
Returns the path that was previously the lead path.
public TreePath getPath ()
Returns the first path element.
public TreePath getPaths ()
Returns the paths that have been added or removed from the selection.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public boolean isAddedPath ()
Returns true if the first path element has been added to the selection, a return value of false means the first path has been removed from the selection.
public boolean isAddedPath (int index)
  Returns true if the path identified by index was added to the selection.
public boolean isAddedPath (TreePath path)
  Returns true if the path identified by path was added to the selection.
public String toString () [Inherited From EventObject]
  Returns a String representation of this EventObject.
Fields
Hide/Show inherited fields
protected boolean areNew
For each path identifies if that path is in fact new.
protected TreePath newLeadSelectionPath
leadSelectionPath after the paths changed, may be null.
protected TreePath oldLeadSelectionPath
leadSelectionPath before the paths changed, may be null.
protected TreePath paths
Paths this event represents.
protectedtransient Object source [Inherited From EventObject]
The object on which the Event initially occurred.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar