T - the generic typepublic interface ITreeNode<T> extends TreeModel
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(ITreeNode<T> child)
Adds the child.
|
void |
addChildAt(int index,
ITreeNode<T> child)
Adds the child.
|
boolean |
equals(ITreeNode<T> treeNode)
Equals.
|
int |
getChildCount()
Gets the child count.
|
List<ITreeNode<T>> |
getChildren()
Gets the children.
|
T |
getValue()
Gets the value.
|
boolean |
hasChildren()
Checks for children.
|
boolean |
isLeaf()
Checks if is leaf.
|
boolean |
isNode()
Checks if is node.
|
void |
removeChild(ITreeNode<T> child)
Removes the child.
|
void |
removeChildAt(int index)
Removes the child.
|
void |
setChildren(List<ITreeNode<T>> children)
Sets the children.
|
void |
setValue(T value)
Sets the value.
|
List<ITreeNode<T>> |
toList()
To list.
|
void |
traverse(ITreeNode<T> node,
List<ITreeNode<T>> list)
Traverse.
|
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChangedvoid addChildAt(int index,
ITreeNode<T> child)
throws IndexOutOfBoundsException
index - the indexchild - the childIndexOutOfBoundsException - the index out of bounds exceptionboolean equals(ITreeNode<T> treeNode)
treeNode - the tree nodeint getChildCount()
T getValue()
boolean hasChildren()
boolean isLeaf()
boolean isNode()
void removeChildAt(int index)
throws IndexOutOfBoundsException
index - the indexIndexOutOfBoundsException - the index out of bounds exceptionvoid setChildren(List<ITreeNode<T>> children)
children - the new childrenvoid setValue(T value)
value - the new valueCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.