public final class SelectionMode
extends org.freedesktop.bindings.Constant
setMode()
on TreeSelection,
which in turn you get by calling TreeView's getSelection()
.
The default is SINGLE
.
Modifier and Type | Field and Description |
---|---|
static SelectionMode |
BROWSE
Normally exactly one row will be selected; the user cannot deselect
this row without selecting another.
|
static SelectionMode |
MULTIPLE
Multiple rows may be selected.
|
static SelectionMode |
NONE
Rows may not be selected.
|
static SelectionMode |
SINGLE
One element may be selected; zero selected rows is also permitted.
|
public static final SelectionMode BROWSE
public static final SelectionMode MULTIPLE
Shift
key will cause the selection to go from
the focus to the click location, and the Ctrl
key will
enlarge the selection by adding the clicked row to the other rows
already selected.public static final SelectionMode NONE
public static final SelectionMode SINGLE