Package org.zkoss.pivot.impl
Class TabularPivotModel.CalculatorContextSpace
java.lang.Object
org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace
- All Implemented Interfaces:
TabularPivotModel.RawDataRunner
- Enclosing class:
- TabularPivotModel
protected static class TabularPivotModel.CalculatorContextSpace
extends Object
implements TabularPivotModel.RawDataRunner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> protected CalculatorContextSignatureprotected intprotected booleanprotected TabularPivotField[]protected TabularPivotField[]protected booleanprotected final Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> protected intprotected final TabularPivotModelprotected intprotected intprotected booleanprotected TabularPivotField[]protected final Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> protected TabularPivotField[]protected TabularPivotField[]protected CalculatorContextSignature -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroupgetBaseGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean autoCreate) protected static final ObjectgetData(List<?> row, TabularPivotField field) protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroupgetDerivedGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean cache, boolean merge) protected static final SimplePivotHeaderNodeprotected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroupgetGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean cache) protected static final StringgetHash(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode) protected final Object[]intgetOverallGrandtotalIdxMapping(int idx) get the mapped data index for overall grand total based on given original data indexprotected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroupgetSourceGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean autoCreate, Object[] keys) protected voiditerateSource(SimplePivotHeaderTree rowTree, SimplePivotHeaderTree colTree) protected voidmergeGroup(org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup m, SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode) protected final voidprotected final voidvoidrun(List<?> row, SimplePivotHeaderTree rowTree, SimplePivotHeaderTree colTree) protected final intprotected final intprotected SimplePivotHeaderTree[]update(boolean force)
-
Field Details
-
_model
-
_source
-
_base
-
_derived
-
_colPF
-
_rowPF
-
_dataPF
-
_srcRCPF
-
_srcDataPF
-
_rfs
protected int _rfs -
_cfs
protected int _cfs -
_rcfs
protected int _rcfs -
_dfs
protected int _dfs -
_rfs0
protected boolean _rfs0 -
_cfs0
protected boolean _cfs0 -
_srcSig
-
_baseSig
-
_delegateSrc
protected boolean _delegateSrc
-
-
Constructor Details
-
CalculatorContextSpace
-
-
Method Details
-
update
-
run
- Specified by:
runin interfaceTabularPivotModel.RawDataRunner
-
iterateSource
-
getOverallGrandtotalIdxMapping
public int getOverallGrandtotalIdxMapping(int idx) get the mapped data index for overall grand total based on given original data index- Parameters:
idx- int the given original data index- Returns:
- int the mapped data index
-
searchSourceRCField
-
searchSourceDataField
-
getFirstLevel
-
refreshPivotScheme
protected final void refreshPivotScheme() -
refreshSourceFieldInfo
protected final void refreshSourceFieldInfo() -
getKeys
-
getData
-
getSourceGroup
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getSourceGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean autoCreate, Object[] keys) -
getBaseGroup
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getBaseGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean autoCreate) -
getDerivedGroup
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getDerivedGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean cache, boolean merge) -
getHash
-
mergeGroup
protected void mergeGroup(org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup m, SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode) -
getGroup
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean cache)
-