Package org.zkoss.pivot.impl.util
Class HeaderTraverser
java.lang.Object
org.zkoss.pivot.impl.util.HeaderTraverser
An engine that traverses through a PivotHeaderTree and calls Fillers. Also
provides extra information of the tree.
- Author:
- simonpai
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe interface called by HeaderTraverser. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()Return the depth of tree minus 1.intReturn the size capped by paging limitation.intgetSize()Return the total size of the tree.voidrun(HeaderTraverser.Filler[] fillers) Traverse the tree and call each Filler at each node and calculator.
-
Constructor Details
-
HeaderTraverser
-
-
Method Details
-
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
Traverse the tree and call each Filler at each node and calculator. Tree is traversed in a child first fashion.
-