Decision Center API

ilog.rules.teamserver.web.tree.impl
Class IlrPreLoadedTreeNode

java.lang.Object
  extended by ilog.rules.teamserver.web.tree.impl.IlrDefaultTreeNode
      extended by ilog.rules.teamserver.web.tree.impl.IlrPreLoadedTreeNode
All Implemented Interfaces:
IlrTreeNode, Serializable

public class IlrPreLoadedTreeNode
extends IlrDefaultTreeNode

Represents a node managed by instances of IlrPreLoadedDataProvider.

See Also:
IlrPreLoadedDataProvider, Serialized Form

Constructor Summary
IlrPreLoadedTreeNode(IlrPreLoadedTreeNode parent, String label)
          Creates a node with a label and attaches it to a parent node.
IlrPreLoadedTreeNode(String id, IlrPreLoadedTreeNode parent, String label)
          Creates a node with an unique identifier and a label.
 
Method Summary
 void addChild(IlrPreLoadedTreeNode child)
          Adds the child at the end of the list of children.
 IlrPreLoadedTreeNode getChildAt(int index)
          Returns the child at a specific index.
 int getChildCount()
          Returns the number of children.
 List<IlrPreLoadedTreeNode> getChildren()
          Returns a list of children.
 boolean hasChildren()
          Tests if this node has children.
 void removeChild(IlrPreLoadedTreeNode child)
          Removes a child from the list of children.
 
Methods inherited from class ilog.rules.teamserver.web.tree.impl.IlrDefaultTreeNode
getClientData, getId, getLabel, getParent, setClientData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrPreLoadedTreeNode

public IlrPreLoadedTreeNode(IlrPreLoadedTreeNode parent,
                            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(String id,
                            IlrPreLoadedTreeNode parent,
                            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 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.

Decision Center API

© Copyright IBM Corp. 1987, 2013