public final class OrganigramHelper extends Object
Constructor | Description |
---|---|
OrganigramHelper() |
Modifier and Type | Method | 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,
String rowKey) |
Finds a
OrganigramNode for the given rowKey. |
static OrganigramNode |
findTreeNode(OrganigramNode searchRoot,
OrganigramNode selection) |
Finds a
OrganigramNode for the given selection. |
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 © 2018. All rights reserved.