|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.tacos.components.tree.TreeIterator
public abstract class TreeIterator
| Constructor Summary | |
|---|---|
TreeIterator(Collection rootElements)
Tree iterator |
|
TreeIterator(Object rootElement)
New tree |
|
| Method Summary | |
|---|---|
protected abstract Collection |
getChildren(Object node)
Gets children |
int |
getDepth()
Depth |
int |
getPreviousDepth()
Previous depth |
boolean |
hasNext()
|
Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeIterator(Object rootElement)
rootElement - public TreeIterator(Collection rootElements)
rootElements - | Method Detail |
|---|
public int getDepth()
public int getPreviousDepth()
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorprotected abstract Collection getChildren(Object node)
node -
public void remove()
remove in interface Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||