|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITreeNodeCollection
Defines methods required by a tree node collection.
Method Summary | |
---|---|
void |
add(int index,
ITreeNode child)
Add the given child at the given index. |
boolean |
add(ITreeNode child)
Add the given child. |
boolean |
addAll(ITreeNodeCollection collection)
Add the given collection to this. |
void |
clear()
Clear the children. |
Object |
clone()
Return a clone of this instance. |
boolean |
contains(ITreeNode treeNode)
Return true if this contains the given node. |
ITreeNode |
get(int index)
Return the child at the given index. |
int |
indexOf(ITreeNode treeNode)
Return the index of the given node. |
boolean |
isEmpty()
Return true if this is empty. |
Iterator |
iterator()
Return an iterator over this collection. |
ITreeNode |
remove(int index)
Remove the object at the given index. |
boolean |
remove(ITreeNode child)
Remove the given child. |
ITreeNode |
set(int index,
ITreeNode child)
Set the given object at the given index. |
int |
size()
Return the size of this collection. |
ITreeNode[] |
toArray()
Return an array representation of this collection. |
ITreeNode[] |
toArray(ITreeNode[] nodes)
Return an array representation of this collection. |
Method Detail |
---|
boolean add(ITreeNode child)
void add(int index, ITreeNode child)
boolean addAll(ITreeNodeCollection collection)
void clear()
Object clone()
boolean contains(ITreeNode treeNode)
ITreeNode get(int index)
int indexOf(ITreeNode treeNode)
boolean isEmpty()
Iterator iterator()
boolean remove(ITreeNode child)
ITreeNode remove(int index)
ITreeNode set(int index, ITreeNode child)
index
- Index.child
- Child to set.
int size()
ITreeNode[] toArray()
ITreeNode[] toArray(ITreeNode[] nodes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |