Package org.zkoss.pivot.impl.util
Class HeaderSizeFiller
java.lang.Object
org.zkoss.pivot.impl.util.AbstractFiller
org.zkoss.pivot.impl.util.HeaderSizeFiller
- All Implemented Interfaces:
HeaderTraverser.Filler
Filler for header sizes.
- Author:
- simonpai
-
Field Summary
Fields inherited from class org.zkoss.pivot.impl.util.AbstractFiller
_pgInfo -
Constructor Summary
ConstructorsConstructorDescriptionHeaderSizeFiller(PivotField[] dataFields, boolean hasDataFields, int headerDispOffset, PivotHeaderTree tree) -
Method Summary
Modifier and TypeMethodDescriptionvoidforNode(PivotHeaderNode node, Trees.TreeTravCtx ctx, int nodeIndex, int dispDepth) Called at each node in traversal.voidforSubtotals(PivotHeaderNode node, Trees.TreeTravCtx ctx, int nodeIndex, int dispDepth, int calIndex) Called at each calculator in traversal.protected abstract PivotFieldgetOffsetField(int index) protected abstract intgetRenderSize(PivotHeaderContext headerCtx, PivotField field) int[]getSizes()voidinit(HeaderTraverser context, PagingInfo pgInfo) Called before tree traversal.Methods inherited from class org.zkoss.pivot.impl.util.AbstractFiller
afterFill
-
Constructor Details
-
HeaderSizeFiller
public HeaderSizeFiller(PivotField[] dataFields, boolean hasDataFields, int headerDispOffset, PivotHeaderTree tree)
-
-
Method Details
-
init
Description copied from interface:HeaderTraverser.FillerCalled before tree traversal.- Specified by:
initin interfaceHeaderTraverser.Filler- Overrides:
initin classAbstractFiller
-
getSizes
public int[] getSizes() -
forNode
Description copied from interface:HeaderTraverser.FillerCalled at each node in traversal. -
forSubtotals
public void forSubtotals(PivotHeaderNode node, Trees.TreeTravCtx ctx, int nodeIndex, int dispDepth, int calIndex) Description copied from interface:HeaderTraverser.FillerCalled at each calculator in traversal. -
getRenderSize
-
getOffsetField
-