Class RootNode

    • Field Detail

      • children

        protected java.util.List children
        The list of child nodes.
    • Constructor Detail

      • RootNode

        public RootNode​(AsyncSwingTreeModel model,
                        javax.swing.JTree tree)
        Create a new service container node.
    • Method Detail

      • getId

        public java.lang.Object getId()
        Get the id used for lookup.
      • refresh

        public void refresh​(boolean recurse)
        Refresh the node.
        Specified by:
        refresh in interface ITreeNode
        Overrides:
        refresh in class AbstractSwingTreeNode
        Parameters:
        recurse - Recursively refresh subnodes, if true.
      • searchChildren

        protected void searchChildren()
        Asynchronously search for children. Should call setChildren() once children are found.
        Specified by:
        searchChildren in class AbstractTreeNode
      • addChild

        public void addChild​(ISwingTreeNode child)
        Add a child node.
        Parameters:
        child - The child node.
      • removeChild

        public void removeChild​(ISwingTreeNode child)
        Remove a path entry from the tree.
        Parameters:
        child - The child node.
      • removeAll

        public void removeAll()
        Remove a path entry from the tree.
      • toString

        public java.lang.String toString()
        Create a string representation.
        Overrides:
        toString in class java.lang.Object
      • getIndex

        public int getIndex​(ISwingTreeNode node)
        Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.
        Parameters:
        node -
        Returns:
        an int.
      • getPathEntries

        public java.lang.String[] getPathEntries()
        Get the path entries {path, display name}.