|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PivotValueProvider
| Method Summary | |
|---|---|
void |
addPivotValueProviderListener(PivotValueProviderListener l)
Add PivotValueProviderListener so that the listener could know when calculation starts or ends. |
void |
forceCalculate()
Ask PivotValueProvider to start calculate. |
CompoundKey[] |
getColumnKeys()
Get column key array. |
Object[] |
getPossibleValues(PivotField field)
Retrieve the possible values for the designated field. |
CompoundKey[] |
getRowKeys()
Get row key array. |
int |
getStatisticsType(Values rowValues,
Values columnValues,
PivotField dataField)
Get the statistics layer. |
Object |
getValueAt(PivotField dataField,
Values rowValues,
Values columnValues)
Retrieve the value for the data field with the designated row values and column values. |
boolean |
isCalculating()
Returns if PivotValueProvider is calculating. |
boolean |
isSingleValueMode()
The cells in the data table are actually summary of multiple rows in the original table model. |
boolean |
isSummaryMode()
Checks if the pivot data model works in summary mode. |
void |
removePivotValueProviderListener(PivotValueProviderListener l)
Remove registered PivotValueProviderListener. |
void |
setPivotFields(PivotField[] rowFields,
PivotField[] columnFields,
PivotField[] dataFields,
PivotField[] filterFields)
Pass fields information to PivotValueProvider for calculation. |
void |
setSingleValueMode(boolean singleValueMode)
Sets the single value mode. |
void |
setSummaryMode(boolean summaryMode)
Sets the flag for the summary mode. |
| Method Detail |
|---|
Object getValueAt(PivotField dataField,
Values rowValues,
Values columnValues)
dataField - the data fieldrowValues - row values in the corresponding row header tablecolumnValues - column values in the corresponding column header table
Object[] getPossibleValues(PivotField field)
field - the pivot field
CompoundKey[] getRowKeys()
CompoundKey[] getColumnKeys()
int getStatisticsType(Values rowValues,
Values columnValues,
PivotField dataField)
PivotConstants.STATISTICS_CALCULATION_DEFAULT.
So that the PivotValueProvider itself will conduct the statistics. However, for running percentage or daily average,
you probably need return other values so that CalculatedPivotDataModel would calculate
the summary itself.
rowValues - the row valuescolumnValues - the column valuesdataField - the data field
void setPivotFields(PivotField[] rowFields,
PivotField[] columnFields,
PivotField[] dataFields,
PivotField[] filterFields)
rowFields - the row fields arraycolumnFields - the column fields arraydataFields - the data fields arrayfilterFields - the filter fields arrayvoid forceCalculate()
boolean isCalculating()
void addPivotValueProviderListener(PivotValueProviderListener l)
l - the listenervoid removePivotValueProviderListener(PivotValueProviderListener l)
l - the listenerboolean isSummaryMode()
void setSummaryMode(boolean summaryMode)
summaryMode - true to set to summary mode. Otherwise false.isSummaryMode()boolean isSingleValueMode()
void setSingleValueMode(boolean singleValueMode)
singleValueMode - true or false.
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||