Function Tree.getSelected
Returns the currently focused item, or null
if no item is focused.
In constant SELECT_ROW
and constant SELECT_SINGLE
modes, the focused item is same as the selected item. In constant SELECT_MULTI
mode, the focused item is the item under the focus cursor, not necessarily selected.
To get the currently selected item(s), use getNextSelected
.