public class TreeSelectionEvent
extends java.util.EventObject
| Constructor and Description |
|---|
TreeSelectionEvent(java.lang.Object source_,
TreePath path_,
boolean isNew_,
TreePath oldLeadSelectionPath_,
TreePath newLeadSelectionPath_)
Represents a change in the selection of a TreeSelectionModel.
|
| Modifier and Type | Method and Description |
|---|---|
TreePath |
getPath()
Returns the path that has been added to or removed from the selection.
|
boolean |
isAddedPath()
Returns true if the path element has been added to the
selection.
|
public TreeSelectionEvent(java.lang.Object source_,
TreePath path_,
boolean isNew_,
TreePath oldLeadSelectionPath_,
TreePath newLeadSelectionPath_)
source_ - the object that initiated this event (usually a
DefaultTreeSelectionModel).path_ - - the path that has changed in the selection.isNew_ - - whether or not the path is new to the selection;
false means path was removed from the selection.oldLeadSelectionPath_ - - not used.newLeadSelectionPath_ - - not used.public TreePath getPath()
public boolean isAddedPath()