| Constructor and Description |
|---|
AbstractGenericTreeNode()
Instantiates a new tree node.
|
AbstractGenericTreeNode(T value)
Instantiates a new tree node.
|
| 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()
(non-Javadoc).
|
int |
hashCode()
(non-Javadoc).
|
boolean |
isLeaf()
(non-Javadoc).
|
boolean |
isNode()
(non-Javadoc).
|
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.
|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChangedpublic AbstractGenericTreeNode()
public AbstractGenericTreeNode(T value)
value - the valuepublic void addChildAt(int index,
ITreeNode<T> child)
throws IndexOutOfBoundsException
addChildAt in interface ITreeNode<T>index - the indexchild - the childIndexOutOfBoundsException - the index out of bounds exceptionpublic int getChildCount()
getChildCount in interface ITreeNode<T>public List<ITreeNode<T>> getChildren()
getChildren in interface ITreeNode<T>public T getValue()
public boolean hasChildren()
hasChildren in interface ITreeNode<T>ITreeNode.hasChildren()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean isLeaf()
isLeaf in interface ITreeNode<T>ITreeNode.isLeaf()public boolean isNode()
isNode in interface ITreeNode<T>ITreeNode.isNode()public void removeChild(ITreeNode<T> child)
removeChild in interface ITreeNode<T>child - the childpublic void removeChildAt(int index)
throws IndexOutOfBoundsException
removeChildAt in interface ITreeNode<T>index - the indexIndexOutOfBoundsException - the index out of bounds exceptionpublic void setChildren(List<ITreeNode<T>> children)
setChildren in interface ITreeNode<T>children - the new childrenpublic void setValue(T value)
Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.