selectedTemplate

The currently selected template, or the parent of the currently selected non-template scheme, or null if no scheme is currently selected.

Setting a template that is either null or not in the tree will select the first template in the tree, or clears the selection if the tree is empty.

See also