|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.pivot.impl.CalculatorContextSignature
public class CalculatorContextSignature
An immutable object that express the requirement of the bottom level cache of TabularPivotModel.
| Constructor Summary | |
|---|---|
CalculatorContextSignature(TabularPivotModel model)
The default constructor, which determines the row/column fields, the data fields and the calculator context types required to build up the model cache. |
|
CalculatorContextSignature(TabularPivotModel model,
PivotField[] extraDataFields,
ContextType<?>[] extraContextTypes)
Optionally provide extra data fields and/or extra calculator context types to secure in the requirement set. |
|
| Method Summary | |
|---|---|
boolean |
covers(CalculatorContextSignature signature)
Return true if this cover the other signature. |
ContextType<?> |
getCustomContextType(int index)
|
int |
getCustomContextTypeCount()
|
ContextType<?>[] |
getCustomContextTypeRequirement()
|
int |
getDataFieldCount()
|
java.util.Set<PivotField> |
getDataFieldRequirement()
|
int |
getIndexOf(ContextType<?> type)
Return the ordinal of custom ContextType in this signature. |
java.util.Set<PivotField> |
getRowColumnFieldRequirement()
|
boolean[] |
getStandardContextTypeRequirement()
|
int |
getTotalContextTypeCount()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CalculatorContextSignature(TabularPivotModel model)
public CalculatorContextSignature(TabularPivotModel model,
PivotField[] extraDataFields,
ContextType<?>[] extraContextTypes)
extraDataFields - can be nullextraContextTypes - can be null| Method Detail |
|---|
public java.util.Set<PivotField> getRowColumnFieldRequirement()
public java.util.Set<PivotField> getDataFieldRequirement()
public boolean[] getStandardContextTypeRequirement()
public ContextType<?>[] getCustomContextTypeRequirement()
public int getDataFieldCount()
public int getCustomContextTypeCount()
public int getTotalContextTypeCount()
public ContextType<?> getCustomContextType(int index)
public boolean covers(CalculatorContextSignature signature)
public int getIndexOf(ContextType<?> type)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||