|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.skin.terra.TerraTreeViewSkin.VisibleNodeIterator
protected final class TerraTreeViewSkin.VisibleNodeIterator
Iterates through the visible nodes. For callers who wish to know the path of each visible node, using this iterator will be much more efficient than manually iterating over the visible nodes and calling getPath() on each node.
Constructor Summary | |
---|---|
TerraTreeViewSkin.VisibleNodeIterator()
|
|
TerraTreeViewSkin.VisibleNodeIterator(int start,
int end)
Creates a new visible node iterator that will iterate over a portion of the visible nodes list (useful during painting). |
Method Summary | |
---|---|
Sequence.Tree.Path |
getPath()
Gets the path of the node last returned by a call to next() . |
int |
getRowIndex()
Gets the index of the node last returned by a call to next() , as seen in the current visible nodes list. |
boolean |
hasNext()
|
TerraTreeViewSkin.NodeInfo |
next()
|
void |
remove()
This operation is not supported by this iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerraTreeViewSkin.VisibleNodeIterator()
public TerraTreeViewSkin.VisibleNodeIterator(int start, int end)
start
- The start index, inclusiveend
- The end index, inclusiveMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<TerraTreeViewSkin.NodeInfo>
public TerraTreeViewSkin.NodeInfo next()
next
in interface Iterator<TerraTreeViewSkin.NodeInfo>
public void remove()
remove
in interface Iterator<TerraTreeViewSkin.NodeInfo>
UnsupportedOperationException
public int getRowIndex()
next()
, as seen in the current visible nodes list. Note
that as branches are expanded and collapsed, the row index of any
given node in the tree will change.
public Sequence.Tree.Path getPath()
next()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |