org.zkoss.pivot.impl.util
Class HeaderTraverser

java.lang.Object
  extended by org.zkoss.pivot.impl.util.HeaderTraverser

public class HeaderTraverser
extends java.lang.Object

An engine that traverses through a PivotHeaderTree and calls Fillers. Also provides extra information of the tree.

Author:
simonpai

Nested Class Summary
static interface HeaderTraverser.Filler
          The interface called by HeaderTraverser.
 
Constructor Summary
HeaderTraverser(PivotHeaderTree tree, PagingInfo pgInfo, boolean open)
           
 
Method Summary
 int getDepth()
          Return the depth of tree minus 1.
 int getRealSize()
          Return the size capped by paging limitation.
 int getSize()
          Return the total size of the tree.
 void run(HeaderTraverser.Filler[] fillers)
          Traverse the tree and call each Filler at each node and calculator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderTraverser

public HeaderTraverser(PivotHeaderTree tree,
                       PagingInfo pgInfo,
                       boolean open)
Method Detail

getSize

public int getSize()
Return the total size of the tree. The value is available only after calling run().


getRealSize

public int getRealSize()
Return the size capped by paging limitation.


getDepth

public int getDepth()
Return the depth of tree minus 1.


run

public void run(HeaderTraverser.Filler[] fillers)
Traverse the tree and call each Filler at each node and calculator. Tree is traversed in a child first fashion.



Copyright © 2013. All Rights Reserved.