Class NodeLocator

java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.widgets.tree.NodeLocator
All Implemented Interfaces:
HasHandlers

public class NodeLocator extends BaseClass
An object containing sufficient context to unambiguously identify a single node in the tree. For normal trees, the node itself - or its ID - is sufficient for this purpose, but for multi-link trees, we also need to know the node's parent, and its position within that parent. For cases where we need to propagate change back up the node's parent chain, in order to maintain a given parent node's openList, the node, parent and position are not enough context; for those cases, we need either the node's position in the tree's openList, or a full path to the node. NodeLocator objects contain this extra context, and can be passed to APIs such as Tree.openFolder(), which would ordinarily accept a parameter of type TreeNode.