Emits when the busy state of the given node is changed.
Emit when the node is expanded or collapsed.
Emit when the children of the given node are refreshed.
Event when a node should be opened.
Emitted when the selection has changed in the tree.
A root node of this tree. Undefined if there is no root node. Setting a root node refreshes the tree.
The tree selection, representing the selected nodes from the tree. If nothing is selected, the result will be empty.
Registers the given selection into the tree selection service. If the selection state changes after adding the
selectionOrTreeNode
argument, a selection changed event will be fired. If the argument is a tree node,
a it will be treated as a tree selection with the default selection type.
Tests whether it is possible to navigate backward.
Tests whether it is possible to navigate forward.
Clears all selected nodes
Collapses recursively. If the node
argument is undefined
, then collapses the currently selected tree node.
If multiple tree nodes are selected, collapses the most recently selected tree node.
Collapses the given node. If the node
argument is undefined
, then collapses the currently selected tree node.
If multiple tree nodes are selected, collapses the most recently selected tree node.
Dispose this object.
Expands the given node. If the node
argument is undefined
, then expands the currently selected tree node.
If multiple tree nodes are selected, expands the most recently selected tree node.
Returns the node currently in focus in this tree, or undefined if no node is focused.
Returns the next selectable tree node.
Return a node for the given identifier or undefined if such does not exist.
Returns the previous selectable tree node.
Marks the give node as busy after a specified number of milliseconds. A token source of the given token should be canceled to unmark.
Navigates backward.
Navigates forward.
Navigates to the given node if it is defined. This method accepts both the tree node and its ID as an argument.
Navigation sets a node as a root node and expand it. Resolves to the node if the navigation was successful. Otherwise,
resolves to undefined
.
Opens the given node or the currently selected on if the argument is undefined
.
If multiple nodes are selected, open the most recently selected node.
Refresh children of the root node.
Return a valid refreshed composite root or undefined
if such does not exist.
Refresh children of a node for the give node id if it is valid.
Return a valid refreshed composite node or undefined
if such does not exist.
Restore selection state.
Selects the next node relatively to the currently selected one. This method takes the expansion state of the tree into consideration.
Selects the given tree node. Has no effect when the node does not exist in the tree. Discards any previous selection state.
Selects the parent node relatively to the selected taking into account node expansion.
Selects the previous node relatively to the currently selected one. This method takes the expansion state of the tree into consideration.
Selects a range of tree nodes. The target of the selection range is the argument, the from tree node is the previous selected node. If no node was selected previously, invoking this method does nothing.
Store selection state.
Selects the given node if it was not yet selected, or unselects it if it was. Keeps the previous selection state and updates it with the current toggle selection.
Toggles the expansion state of the given node. If not give, then it toggles the expansion state of the currently selected node. If multiple nodes are selected, then the most recently selected tree node's expansion state will be toggled.
Emit when the tree is changed.