Home » openjdk-7 » javax » swing » tree » [javadoc | source]
javax.swing.tree
class: VariableHeightLayoutCache.VisibleTreeStateNodeEnumeration [javadoc | source]
java.lang.Object
   javax.swing.tree.VariableHeightLayoutCache$VisibleTreeStateNodeEnumeration

All Implemented Interfaces:
    Enumeration

An enumerator to iterate through visible nodes.
Field Summary
protected  TreeStateNode parent    Parent thats children are being enumerated. 
protected  int nextIndex    Index of next child. An index of -1 signifies parent should be visibled next. 
protected  int childCount    Number of children in parent. 
Constructor:
 protected VisibleTreeStateNodeEnumeration(TreeStateNode node) 
 protected VisibleTreeStateNodeEnumeration(TreeStateNode parent,
    int startIndex) 
Method from javax.swing.tree.VariableHeightLayoutCache$VisibleTreeStateNodeEnumeration Summary:
findNextValidParent,   hasMoreElements,   nextElement,   updateNextIndex,   updateNextObject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.tree.VariableHeightLayoutCache$VisibleTreeStateNodeEnumeration Detail:
 protected boolean findNextValidParent() 
    Finds the next valid parent, this should be called when nextIndex is beyond the number of children of the current parent.
 public boolean hasMoreElements() 
 public TreePath nextElement() 
 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.