public interface TreeSelectableModel
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSelectionPath(int[] path)
Adds path to the current selection.
|
boolean |
addSelectionPaths(int[][] paths)
Adds paths to the current selection.
|
void |
clearSelection()
Empties the current selection.
|
int |
getSelectionCount()
Returns the number of paths that are selected.
|
int[] |
getSelectionPath()
Returns the first path in the selection.
|
int[][] |
getSelectionPaths()
Returns the paths in the selection.
|
boolean |
isMultiple()
Returns whether the current selection mode is multiple.
|
boolean |
isPathSelected(int[] path)
Returns true if the path,
path, is in the current selection. |
boolean |
isSelectionEmpty()
Returns true if the selection is currently empty.
|
boolean |
removeSelectionPath(int[] path)
Removes path from the selection.
|
boolean |
removeSelectionPaths(int[][] paths)
Removes paths from the selection.
|
void |
setMultiple(boolean multiple)
Sets the selection mode to be multiple.
|
void setMultiple(boolean multiple)
boolean isMultiple()
setMultiple(boolean)boolean addSelectionPath(int[] path)
path is null.path - the new path to add to the current selectionboolean addSelectionPaths(int[][] paths)
paths is null.paths - the new paths to add to the current selectionboolean removeSelectionPath(int[] path)
path
is null.path - the path to remove from the selectionboolean removeSelectionPaths(int[][] paths)
paths are in the selection, the TreeDataListeners are
notified. This method has no effect if paths is null.paths - the path to remove from the selectionboolean isPathSelected(int[] path)
path, is in the current selection.boolean isSelectionEmpty()
void clearSelection()
int[] getSelectionPath()
int[][] getSelectionPaths()
int getSelectionCount()
Copyright © 2015. All rights reserved.