Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tonbeller.wcf.tree
Class NodeIterator

    java.lang.Object
      com.tonbeller.wcf.tree.NodeIterator

All Implemented Interfaces:
  java.util.Iterator

public class NodeIterator
extends java.lang.Object
implements java.util.Iterator

flat view of a tree model in pre- or postorder

Author:
  av

Constructor Summary
`NodeIterator(TreeModel tm, boolean preorder)` traverses the whole tree
`NodeIterator(TreeModel tm, java.lang.Object root, boolean preorder)` traverses the subtree containing node and all children of node

Method Summary
`boolean` | `hasNext()`
`java.lang.Object` | `next()`
`void` | `remove()`
`void` | `rewind()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NodeIterator

    public NodeIterator(TreeModel tm,
                        boolean preorder)

  traverses the whole tree

Parameters:
  `tm` -
  `preorder` -

### NodeIterator

    public NodeIterator(TreeModel tm,
                        java.lang.Object root,
                        boolean preorder)

  traverses the subtree containing node and all children of node

Parameters:
  `tm` -
  `preorder` -
  `root` -

Method Detail

### hasNext

    public boolean hasNext()

  Specified by:
    `hasNext` in interface `java.util.Iterator`

### next

    public java.lang.Object next()

  Specified by:
    `next` in interface `java.util.Iterator`

### remove

    public void remove()

  Specified by:
    `remove` in interface `java.util.Iterator`

### rewind

    public void rewind()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD