Class OrganigramHelper
java.lang.Object
org.primefaces.component.organigram.OrganigramHelper
Some helpers methods for the organigram model/component.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildRowKeys(OrganigramNode node) Loops theOrganigramNodes and generates a rowKey for each node on the basis of the parent and child index.static OrganigramNodefindTreeNode(OrganigramNode searchRoot, String rowKey) Finds aOrganigramNodefor the given rowKey.static OrganigramNodefindTreeNode(OrganigramNode searchRoot, OrganigramNode selection) Finds aOrganigramNodefor the given selection.
-
Method Details
-
findTreeNode
Finds aOrganigramNodefor the given rowKey.- Parameters:
searchRoot- TheOrganigramNodeto start the search.rowKey- The rowKey.- Returns:
- The
OrganigramNodefor the rowKey ornull.
-
findTreeNode
Finds aOrganigramNodefor the given selection.- Parameters:
searchRoot- TheOrganigramNodeto start the search.selection- The selection.- Returns:
- The
OrganigramNodefor the selection ornull.
-
buildRowKeys
Loops theOrganigramNodes and generates a rowKey for each node on the basis of the parent and child index.- Parameters:
node- The root node.
-