Interface NavigationNode

    • Method Detail

      • getData

        java.lang.Object getData()
        Returns data associated with the node. If no data are associated with the node it returns null.
        Returns:
        data associated with the node or null if no data are associated with the node
      • getParent

        NavigationNode getParent()
        Returns the parent node of this node.
        Returns:
        parent node of this node or null if this is a root node
      • getChildren

        java.util.List<NavigationNode> getChildren()
        Returns all children nodes.
        Returns:
        all children nodes
      • setChildren

        void setChildren​(java.util.List<NavigationNode> children)
        Sets the given list to be child nodes of this node.
        Parameters:
        children - list of nodes to become children of this node
      • addChild

        void addChild​(NavigationNode child)
        Adds the given node as a child of this node.
        Parameters:
        child - a node to become a child of this node
      • setParent

        void setParent​(NavigationNode parent)
        Sets the parent of this node to the given node.
        Parameters:
        parent - a node to become a parent of this node
      • getLevel

        int getLevel()
        Returns the level of this node. A root node has level = 0.
        Returns:
        level of this node
      • isDirectory

        boolean isDirectory()
        Returns true if this node can have children.
        Returns:
        true if this node can have children and false otherwise
      • isExpandedByDefault

        boolean isExpandedByDefault()
        Returns true if this node should be expanded by default when the tree is created.
        Returns:
        true if this node should be expanded by default; false otherwise
      • getContext

        default CockpitContext getContext()
        Returns node context
        Returns:
        new DefaultCockpitContext by default
      • setContext

        default void setContext​(CockpitContext cockpitContext)
        Sets node context
        Parameters:
        cockpitContext -