|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration
An enumerator to iterate through visible nodes.
Field Summary | |
protected int |
childCount
Number of children in parent. |
protected int |
nextIndex
Index of next child. |
protected VariableHeightLayoutCache.TreeStateNode |
parent
Parent thats children are being enumerated. |
Constructor Summary | |
protected |
VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration(VariableHeightLayoutCache.TreeStateNode node)
|
protected |
VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration(VariableHeightLayoutCache.TreeStateNode parent,
int startIndex)
|
Method Summary | |
protected boolean |
findNextValidParent()
Finds the next valid parent, this should be called when nextIndex is beyond the number of children of the current parent. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
protected boolean |
updateNextIndex()
Updates nextIndex returning false if it is beyond
the number of children of parent. |
protected void |
updateNextObject()
Determines the next object by invoking updateNextIndex
and if not succesful findNextValidParent . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected VariableHeightLayoutCache.TreeStateNode parent
protected int nextIndex
protected int childCount
Constructor Detail |
protected VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration(VariableHeightLayoutCache.TreeStateNode node)
protected VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration(VariableHeightLayoutCache.TreeStateNode parent, int startIndex)
Method Detail |
public boolean hasMoreElements()
Enumeration
hasMoreElements
in interface Enumeration
public Object nextElement()
Enumeration
nextElement
in interface Enumeration
protected void updateNextObject()
updateNextIndex
and if not succesful findNextValidParent
.
protected boolean findNextValidParent()
protected boolean updateNextIndex()
nextIndex
returning false if it is beyond
the number of children of parent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |