Interface NavigationNodeTreeService
-
- All Known Implementing Classes:
DefaultNavigationNodeTreeService
public interface NavigationNodeTreeServiceUsed byTreeModelfor building tree structure
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypedObjectgetChild(TypedObject node, int index)Find a child node of a given node at a given positionintgetChildCount(TypedObject node)Find number of child nodes for a given nodejava.util.List<TypedObject>getRootNavigationNodes(CatalogVersionModel catVer)Find all root nodes for a given catalog versionbooleanisLeaf(TypedObject node)Determine whether a node is a leaf node or not.
-
-
-
Method Detail
-
getChild
TypedObject getChild(TypedObject node, int index)
Find a child node of a given node at a given position- Parameters:
node- parent nodeindex- node position- Returns:
- child node of given node at given (index) position
-
getChildCount
int getChildCount(TypedObject node)
Find number of child nodes for a given node- Parameters:
node- parent node with children nodes- Returns:
- quantity of children
-
isLeaf
boolean isLeaf(TypedObject node)
Determine whether a node is a leaf node or not.- Parameters:
node-- Returns:
- true if has no children, or is leaf by other means
-
getRootNavigationNodes
java.util.List<TypedObject> getRootNavigationNodes(CatalogVersionModel catVer)
Find all root nodes for a given catalog version- Parameters:
catVer- catalog version- Returns:
- root nodes for given catalog version
-
-