public class NavigationNode extends Object implements NavigationTreeNode
Modifier and Type | Field and Description |
---|---|
protected List<NavigationTreeNode> |
children |
protected String |
configId |
protected Element |
el |
protected Map<String,Object> |
h |
Constructor and Description |
---|
NavigationNode() |
Modifier and Type | Method and Description |
---|---|
void |
addChildNode(NavigationTreeNode n) |
String |
getAttrib(String name)
Get an attribute of the node.
|
Map<String,Object> |
getAttribs()
Return the list of attributes.
|
List<NavigationTreeNode> |
getChildren()
The default implementation returns the sub-nodes in the xml-tre.
|
String |
getConfigId()
Returns the id of the gui configuration.
|
Element |
getElement()
Return the xml element.
|
String |
getId()
Returns the id.
|
String |
getName()
Get the name of the node.
|
void |
init(Element elem,
String configid)
This method is called when the node is defined in an xml during initialization of the gui configuration.
|
boolean |
mayExecute()
The default implementation evaluates the rolesMayExecute element.
|
void |
setAttrib(String name,
Object value)
Set an attribute of the node.
|
void |
setId(String id)
Set the id of the node.
|
JSONObject |
toJson()
Returns a json representation of this node.
|
protected Element el
protected String configId
protected List<NavigationTreeNode> children
public void init(Element elem, String configid)
init
in interface NavigationTreeNode
elem
- the xml elementconfigid
- the id of the configuration XMLpublic String getConfigId()
NavigationTreeNode
getConfigId
in interface NavigationTreeNode
public String getAttrib(String name)
NavigationTreeNode
getAttrib
in interface NavigationTreeNode
public void setAttrib(String name, Object value)
NavigationTreeNode
setAttrib
in interface NavigationTreeNode
public String getName()
NavigationTreeNode
getName
in interface NavigationTreeNode
public void setId(String id)
NavigationTreeNode
setId
in interface NavigationTreeNode
public String getId()
NavigationTreeNode
getId
in interface NavigationTreeNode
public List<NavigationTreeNode> getChildren()
getChildren
in interface NavigationTreeNode
public boolean mayExecute()
mayExecute
in interface NavigationTreeNode
public JSONObject toJson()
NavigationTreeNode
toJson
in interface NavigationTreeNode
public Element getElement()
NavigationTreeNode
getElement
in interface NavigationTreeNode
public void addChildNode(NavigationTreeNode n)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.