public final class OrganigramHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
buildRowKeys(OrganigramNode node)
Loops the
OrganigramNode s and generates a rowKey for each node on the basis of the parent and child index. |
static OrganigramNode |
findTreeNode(OrganigramNode searchRoot,
OrganigramNode selection)
Finds a
OrganigramNode for the given selection. |
static OrganigramNode |
findTreeNode(OrganigramNode searchRoot,
String rowKey)
Finds a
OrganigramNode for the given rowKey. |
public static OrganigramNode findTreeNode(OrganigramNode searchRoot, String rowKey)
OrganigramNode
for the given rowKey.searchRoot
- The OrganigramNode
to start the search.rowKey
- The rowKey.OrganigramNode
for the rowKey or null
.public static OrganigramNode findTreeNode(OrganigramNode searchRoot, OrganigramNode selection)
OrganigramNode
for the given selection.searchRoot
- The OrganigramNode
to start the search.selection
- The selection.OrganigramNode
for the selection or null
.public static void buildRowKeys(OrganigramNode node)
OrganigramNode
s and generates a rowKey for each node on the basis of the parent and child index.node
- The root node.Copyright © 2020. All rights reserved.