Example usage for Java javax.swing.tree TreeSelectionModel fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SINGLE_TREE_SELECTION Selection can only contain one path at a time. |
int | CONTIGUOUS_TREE_SELECTION Selection can only be contiguous. |
int | DISCONTIGUOUS_TREE_SELECTION Selection can contain any number of items that are not necessarily contiguous. |
void | addSelectionPath(TreePath path) Adds path to the current selection. |
void | addTreeSelectionListener(TreeSelectionListener x) Adds x to the list of listeners that are notified each time the set of selected TreePaths changes. |
void | clearSelection() Empties the current selection. |
int[] | getSelectionRows() Returns all of the currently selected rows. |
boolean | isPathSelected(TreePath path) Returns true if the path, path , is in the current selection. |
boolean | isSelectionEmpty() Returns true if the selection is currently empty. |
void | setSelectionMode(int mode) Sets the selection model, which must be one of SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION. |
void | setSelectionPath(TreePath path) Sets the selection to path. |