Class NavNode
java.lang.Object
org.apache.juneau.console.freemarker.NavNode
One node in the console navigation tree. Nodes nest to any depth;
<@node> directives append
to the node returned by PageCapture.navRoot().
Example:
NavNode
- Since:
- 10.0.0
-
Method Summary
-
Method Details
-
add
public NavNode add(String nodeId, String label, String hrefOrNull) throws freemarker.template.TemplateModelException Appends a child node.- Parameters:
nodeId- The node id, unique among its siblings.label- The visible label.hrefOrNull- The link target, ornull for a parent-only node.- Returns:
- The new child.
- Throws:
freemarker.template.TemplateModelException- If a sibling already has this id (E-3).
-
find
Walks a root-first id path from this node.- Parameters:
idPath- The ids, root first.- Returns:
- The node at the end of the path, or empty.
-
id
- Returns:
- The id, or
null for the synthetic root.
-
label
- Returns:
- The label.
-
href
- Returns:
- The href, or
null .
-
children
- Returns:
- The children, unmodifiable.
-