Class: javax.swing.tree.VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration
- private class VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration
- implements Enumeration<TreePath>
An enumerator to iterate through visible nodes.
Inheritance
Superclass tree:- java.lang.Object
- javax.swing.tree.VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration
Methods
-
VariableHeightLayoutCache.VisibleTreeStateNodeEnumerationtop
protected VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration(VariableHeightLayoutCache.TreeStateNode node) -
VariableHeightLayoutCache.VisibleTreeStateNodeEnumerationtop
protected VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration(VariableHeightLayoutCache.TreeStateNode parent, int startIndex) -
findNextValidParenttop
protected boolean findNextValidParent()Finds the next valid parent, this should be called when nextIndex is beyond the number of children of the current parent. -
hasMoreElementstop
public boolean hasMoreElements()Tests if this enumeration contains more elements.- Specified by:
- hasMoreElements from Enumeration<TreePath>
-
nextElementtop
public TreePath nextElement()Returns the next element of this enumeration if this enumeration object has at least one more element to provide.- Specified by:
- nextElement from Enumeration<TreePath>
-
updateNextIndextop
protected boolean updateNextIndex()UpdatesnextIndexreturning false if it is beyond the number of children of parent. -
updateNextObjecttop
protected void updateNextObject()Determines the next object by invokingupdateNextIndexand if not succesfulfindNextValidParent.
Fields
-
childCount
protected int childCountNumber of children in parent. -
nextIndex
protected int nextIndexIndex of next child. An index of -1 signifies parent should be visibled next. -
parent
protected VariableHeightLayoutCache.TreeStateNode parentParent thats children are being enumerated.
