ilog.rules.teamserver.web.tree.impl

Class IlrPreLoadedTreeNode

    • Constructor Detail

      • IlrPreLoadedTreeNode

        public IlrPreLoadedTreeNode(IlrPreLoadedTreeNode parent,
                            java.lang.String label)
        Creates a node with a label and attaches it to a parent node.
        Parameters:
        parent - The parent.
        label - The label.
      • IlrPreLoadedTreeNode

        public IlrPreLoadedTreeNode(java.lang.String id,
                            IlrPreLoadedTreeNode parent,
                            java.lang.String label)
        Creates a node with an unique identifier and a label. This node is attached to a parent node.
        Parameters:
        id - A unique Id.
        parent - The parent.
        label - The label.
    • Method Detail

      • hasChildren

        public boolean hasChildren()
        Tests if this node has children.
        Returns:
        true if this node has children.
      • getChildren

        public java.util.List<IlrPreLoadedTreeNode> getChildren()
        Returns a list of children.
        Returns:
        The list of children.
      • getChildCount

        public int getChildCount()
        Returns the number of children.
        Returns:
        The number of children.
      • getChildAt

        public IlrPreLoadedTreeNode getChildAt(int index)
        Returns the child at a specific index.
        Parameters:
        index - The index of the child to return.
        Returns:
        The child at index.
      • addChild

        public void addChild(IlrPreLoadedTreeNode child)
        Adds the child at the end of the list of children.
        Parameters:
        child - The child to add.
      • removeChild

        public void removeChild(IlrPreLoadedTreeNode child)
        Removes a child from the list of children.
        Parameters:
        child - The child to remove.

© Copyright IBM Corp. 1987, 2017