Protected ReadonlyidsThe stack of selections, by the id of the nodes they refer to.
Everything this state does with a selection resolves the node through the tree anyway, so keeping the nodes themselves would only pin a subtree that a refresh has since replaced, along with whatever its elements refer to. Keeping the ids also lets a selection outlive its nodes briefly leaving the tree, as happens when a tree updates itself by clearing its contents before filling them in again.
Protected ReadonlytreeThe selections of this state that refer to a node the tree currently has. Selections of nodes that are not in the tree are left out, but are kept by this state, so that they apply again if their nodes come back.
ProtectedcheckChecks whether the argument contains any DEFAULT tree selection type. If yes, throws an error, otherwise returns with a reference the argument.
ProtectedfindResolves a node id against the tree. Unlike toSelectableTreeNode this does not report an id that does not resolve, because the stack is expected to outlive the nodes it refers to.
ProtectedhandleProtectedhandleProtectedhandleProtectedselectionReturns with an array of items representing the selection range. The from node is the focus the to node
is the selected node itself on the tree selection. Both the from node and the to node are inclusive.
Protectedto
Class for representing and managing the selection state and the focus of a tree.