Package com.groiss.gui
Class NavigationNode
java.lang.Object
com.groiss.gui.NavigationNode
- All Implemented Interfaces:
NavigationTreeNode
A node in the gui configuration tree.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get an attribute of the node.Return the list of attributes.The default implementation returns the sub-nodes in the xml-tre.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 when the node is defined in an xml during initialization of the gui configuration.boolean
The default implementation evaluates the rolesMayExecute element.void
Set an attribute of the node.void
Set the id of the node.toJson()
Returns a json representation of this node.
-
Field Details
-
h
-
el
-
configId
-
children
-
-
Constructor Details
-
NavigationNode
public NavigationNode()
-
-
Method Details
-
init
This method is called when the node is defined in an xml during initialization of the gui configuration.- Specified by:
init
in interfaceNavigationTreeNode
- Parameters:
elem
- the xml elementconfigid
- the id of the configuration XML
-
getConfigId
Description copied from interface:NavigationTreeNode
Returns the id of the gui configuration.- Specified by:
getConfigId
in interfaceNavigationTreeNode
-
getAttrib
Description copied from interface:NavigationTreeNode
Get an attribute of the node.- Specified by:
getAttrib
in interfaceNavigationTreeNode
-
getAttribs
Return the list of attributes. -
setAttrib
Description copied from interface:NavigationTreeNode
Set an attribute of the node.- Specified by:
setAttrib
in interfaceNavigationTreeNode
-
getName
Description copied from interface:NavigationTreeNode
Get the name of the node.- Specified by:
getName
in interfaceNavigationTreeNode
-
setId
Description copied from interface:NavigationTreeNode
Set the id of the node.- Specified by:
setId
in interfaceNavigationTreeNode
-
getId
Description copied from interface:NavigationTreeNode
Returns the id.- Specified by:
getId
in interfaceNavigationTreeNode
-
getChildren
The default implementation returns the sub-nodes in the xml-tre.- Specified by:
getChildren
in interfaceNavigationTreeNode
-
mayExecute
public boolean mayExecute()The default implementation evaluates the rolesMayExecute element.- Specified by:
mayExecute
in interfaceNavigationTreeNode
-
toJson
Description copied from interface:NavigationTreeNode
Returns a json representation of this node. This is used for building the navigation on the client.- Specified by:
toJson
in interfaceNavigationTreeNode
-
getElement
Description copied from interface:NavigationTreeNode
Return the xml element.- Specified by:
getElement
in interfaceNavigationTreeNode
-
getParametersAsJson
Description copied from interface:NavigationTreeNode
Returns the content of the "param" element of the node.- Specified by:
getParametersAsJson
in interfaceNavigationTreeNode
- Returns:
- a JSONObject
-