getLastSelectedNode();
The getLastSelectedNode method returns key of the last selected node.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Select node Tree.setNodeSelected(2, true); // Get index of the last selected node Tree.getLastSelectedNode(); // -> "2"
After executing the example key of the last selected node is obtained.
See also: