Protected
Readonly
expansionProtected
Readonly
focusProtected
Readonly
loggerProtected
Readonly
navigationProtected
Readonly
onProtected
Readonly
onProtected
Readonly
selectionProtected
Readonly
toProtected
Readonly
treeProtected
Readonly
treeEmit when the node is expanded or collapsed.
Emit when the children of the given node are refreshed.
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.
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.
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.
Optional
raw: Readonly<CompositeTreeNode>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.
Optional
raw: Readonly<ExpandableTreeNode>Protected
createProtected
createProtected
createProtected
createProtected
createProtected
doProtected
doProtected
doProtected
doExpands 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.
Optional
raw: Readonly<ExpandableTreeNode>Protected
fireProtected
getReturns the node currently in focus in this tree, or undefined if no node is focused.
Returns the next selectable tree node.
Returns the previous selectable tree node.
Protected
handleProtected
initProtected
isMarks the give node as busy after a specified number of milliseconds. A token source of the given token should be canceled to unmark.
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.
Optional
raw: TreeNodeRefresh children of the root node.
Return a valid refreshed composite root or undefined
if such does not exist.
Optional
parent: Readonly<CompositeTreeNode>Protected
selectSelect the given node if it is the ancestor of a selected node.
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.
Protected
selectSelects 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.
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.
Optional
raw: Readonly<ExpandableTreeNode>
The tree - an abstract data type.