public interface NavigationNode extends ActionDefinition
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(NavigationNode child)
Adds the given node as a child of this node.
|
List<NavigationNode> |
getChildren()
Returns all children nodes.
|
default CockpitContext |
getContext()
Returns node context
|
Object |
getData()
Returns data associated with the node.
|
int |
getLevel()
Returns the level of this node.
|
NavigationNode |
getParent()
Returns the parent node of this node.
|
boolean |
isDirectory()
Returns
true |
boolean |
isExpandedByDefault()
Returns true if this node should be expanded by default when the tree is created.
|
void |
setChildren(List<NavigationNode> children)
Sets the given list to be child nodes of this node.
|
default void |
setContext(CockpitContext cockpitContext)
Sets node context
|
void |
setParent(NavigationNode parent)
Sets the parent of this node to the given node.
|
getDescription, getDescriptionLocKey, getGroup, getIconUri, getIconUriLocKey, getId, getName, getNameLocKeyObject getData()
null.null if no data are associated with the nodeNavigationNode getParent()
null if this is a root nodeList<NavigationNode> getChildren()
void setChildren(List<NavigationNode> children)
children - list of nodes to become children of this nodevoid addChild(NavigationNode child)
child - a node to become a child of this nodevoid setParent(NavigationNode parent)
parent - a node to become a parent of this nodeint getLevel()
boolean isDirectory()
true if this node can have children.true if this node can have children and false otherwiseboolean isExpandedByDefault()
default CockpitContext getContext()
default void setContext(CockpitContext cockpitContext)
cockpitContext - Copyright © 2018. All rights reserved.