public interface TreeSelectionModel
Modifier and Type | Method and Description |
---|---|
void |
addTreeSelectionListener(TreeSelectionListener listener)
Adds "listener" to the list of listeners that are notified each
time the set of selected TreePaths changes.
|
void |
clearSelection()
Empties the current selection.
|
TreePath |
getSelectionPath()
Returns the first path in the selection.
|
boolean |
isPathSelected(TreePath path)
Returns true if "path" is in the current selection.
|
boolean |
isSelectionEmpty()
Returns true if the selection is currently empty.
|
void |
removeTreeSelectionListener(TreeSelectionListener listener)
Removes "listener" from the list of listeners that are notified
each time the set of selected TreePaths changes.
|
void |
setSelectionPath(TreePath path)
Sets the selection to "path".
|
TreePath getSelectionPath()
void setSelectionPath(TreePath path)
void clearSelection()
boolean isPathSelected(TreePath path)
boolean isSelectionEmpty()
void addTreeSelectionListener(TreeSelectionListener listener)
void removeTreeSelectionListener(TreeSelectionListener listener)