使用功能在SAP树中查找项目

在Java中使用字符串“ 1 \\ 1”时,它将给出有效路径并返回右键。您需要以下代码:

SapTree tree = ...; // initialize somewhere
String parentKey = tree.findNodeKeyByPath("1");
tree.expandNode(parentKey);
String key = tree.findNodeKeyByPath("1\\1");