All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.event.TreeSelectionEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.sun.java.swing.event.TreeSelectionEvent

public class TreeSelectionEvent
extends EventObject
An event that characterizes a change in the current selection. The change is based on any number of paths. PathSelectionListeners will generally query the source of the event for the new selected status of each potentially changed row.

See Also:
PathSelectionModel

Variable Index

 o paths
Paths this event represents.

Constructor Index

 o TreeSelectionEvent(Object, JTreePath)
Represents a change in the selection of a PathSelectionModel.
 o TreeSelectionEvent(Object, JTreePath[])
Represents a change in the selection of a PathSelectionModel.

Method Index

 o getPath()
Returns the first path element.
 o getPaths()
Returns the paths that have been added or removed from the selection.

Variables

 o paths
 protected JTreePath paths[]
Paths this event represents.

Constructors

 o TreeSelectionEvent
 public TreeSelectionEvent(Object source,
                           JTreePath paths[])
Represents a change in the selection of a PathSelectionModel. paths identifies the paths that have been either added or removed from the selection.

Parameters:
source - TreeSelectionModel that has changed
paths - the paths that have changed in the selection
 o TreeSelectionEvent
 public TreeSelectionEvent(Object source,
                           JTreePath path)
Represents a change in the selection of a PathSelectionModel. path identifies the path that have been either added or removed from the selection.

Parameters:
source - TreeSelectionModel that has changed
path - the path that has changed in the selection

Methods

 o getPaths
 public JTreePath[] getPaths()
Returns the paths that have been added or removed from the selection.

 o getPath
 public JTreePath getPath()
Returns the first path element.


All Packages  Class Hierarchy  This Package  Previous  Next  Index