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
-
paths
- Paths this event represents.
-
TreeSelectionEvent(Object, JTreePath)
- Represents a change in the selection of a PathSelectionModel.
-
TreeSelectionEvent(Object, JTreePath[])
- Represents a change in the selection of a PathSelectionModel.
-
getPath()
- Returns the first path element.
-
getPaths()
- Returns the paths that have been added or removed from the
selection.
paths
protected JTreePath paths[]
- Paths this event represents.
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
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
getPaths
public JTreePath[] getPaths()
- Returns the paths that have been added or removed from the
selection.
getPath
public JTreePath getPath()
- Returns the first path element.
All Packages Class Hierarchy This Package Previous Next Index