|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeSelectableModel
Indicate a tree model that supports selection. It is typically used with
TreeModel and Tree.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void setMultiple(boolean multiple)
boolean isMultiple()
setMultiple(boolean)boolean addSelectionPath(int[] path)
path is null.
path - the new path to add to the current selection
boolean addSelectionPaths(int[][] paths)
paths is null.
paths - the new paths to add to the current selection
boolean removeSelectionPath(int[] path)
path
is null.
path - the path to remove from the selection
boolean 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 selection
boolean isPathSelected(int[] path)
path, is in the current selection.
boolean isSelectionEmpty()
void clearSelection()
int[] getSelectionPath()
int[][] getSelectionPaths()
int getSelectionCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||