Class: javax.swing.tree.FixedHeightLayoutCache.VisibleFHTreeStateNodeEnumeration
- private class FixedHeightLayoutCache.VisibleFHTreeStateNodeEnumeration
- implements Enumeration<TreePath>
An enumerator to iterate through visible nodes.
Inheritance
Superclass tree:- java.lang.Object
- javax.swing.tree.FixedHeightLayoutCache.VisibleFHTreeStateNodeEnumeration
Methods
-
FixedHeightLayoutCache.VisibleFHTreeStateNodeEnumerationtop
protected FixedHeightLayoutCache.VisibleFHTreeStateNodeEnumeration(FixedHeightLayoutCache.FHTreeStateNode node) -
FixedHeightLayoutCache.VisibleFHTreeStateNodeEnumerationtop
protected FixedHeightLayoutCache.VisibleFHTreeStateNodeEnumeration(FixedHeightLayoutCache.FHTreeStateNode 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 FixedHeightLayoutCache.FHTreeStateNode parentParent thats children are being enumerated.
