public class IlrPreLoadedTreeNode extends IlrDefaultTreeNode
IlrPreLoadedDataProvider.IlrPreLoadedDataProvider,
Serialized Form| Constructor and Description |
|---|
IlrPreLoadedTreeNode(IlrPreLoadedTreeNode parent,
java.lang.String label)
Creates a node with a label and attaches it to a parent node.
|
IlrPreLoadedTreeNode(java.lang.String id,
IlrPreLoadedTreeNode parent,
java.lang.String label)
Creates a node with an unique identifier and a label.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.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.
|
getClientData, getId, getLabel, getParent, setClientDatapublic IlrPreLoadedTreeNode(IlrPreLoadedTreeNode parent, java.lang.String label)
parent - The parent.label - The label.public IlrPreLoadedTreeNode(java.lang.String id,
IlrPreLoadedTreeNode parent,
java.lang.String label)
id - A unique Id.parent - The parent.label - The label.public boolean hasChildren()
true if this node has children.public java.util.List<IlrPreLoadedTreeNode> getChildren()
public int getChildCount()
public IlrPreLoadedTreeNode getChildAt(int index)
index - The index of the child to return.index.public void addChild(IlrPreLoadedTreeNode child)
child - The child to add.public void removeChild(IlrPreLoadedTreeNode child)
child - The child to remove.© Copyright IBM Corp. 1987, 2017