Package com.groiss.gui
Interface NavigationTreeNode
- All Known Implementing Classes:
NavigationNode
public interface NavigationTreeNode
Interface for nodes in the gui navigation.
-
Method Summary
Modifier and TypeMethodDescriptionGet an attribute of the node.Returns the children of this node.Returns the id of the gui configuration.Return the xml element.getId()
Returns the id.getName()
Get the name of the node.Returns the content of the "param" element of the node.void
This method is called after the node is created.boolean
Returns true if the current user may view this node.void
Set an attribute of the node.void
Set the id of the node.toJson()
Returns a json representation of this node.
-
Method Details
-
getConfigId
String getConfigId()Returns the id of the gui configuration. -
getId
String getId()Returns the id. -
setId
Set the id of the node. -
getAttrib
Get an attribute of the node. -
setAttrib
Set an attribute of the node. -
getName
String getName()Get the name of the node. -
getChildren
List<NavigationTreeNode> getChildren()Returns the children of this node. The default implementation returns the sub-nodes in the xml-tre. -
mayExecute
boolean mayExecute()Returns true if the current user may view this node. -
toJson
JSONObject toJson()Returns a json representation of this node. This is used for building the navigation on the client. -
getElement
Element getElement()Return the xml element. -
init
This method is called after the node is created.- Parameters:
elem
- the xml element in the GUI configurationconfigid
- id of GUI configuration
-
getParametersAsJson
JSONObject getParametersAsJson()Returns the content of the "param" element of the node.- Returns:
- a JSONObject
-