Interface NavigationTreeNode

All Known Implementing Classes:
NavigationNode

public interface NavigationTreeNode
Interface for nodes in the gui navigation.
  • Method Details

    • getConfigId

      String getConfigId()
      Returns the id of the gui configuration.
    • getId

      String getId()
      Returns the id.
    • setId

      void setId(String id)
      Set the id of the node.
    • getAttrib

      String getAttrib(String name)
      Get an attribute of the node.
    • setAttrib

      void setAttrib(String name, Object value)
      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

      void init(Element elem, String configid)
      This method is called after the node is created.
      Parameters:
      elem - the xml element in the GUI configuration
      configid - id of GUI configuration
    • getParametersAsJson

      JSONObject getParametersAsJson()
      Returns the content of the "param" element of the node.
      Returns:
      a JSONObject