public interface PivotModel
Modifier and Type | Method and Description |
---|---|
void |
addPivotDataListener(PivotDataListener p)
Adds a pivot data listener.
|
PivotHeaderTree |
getColumnHeaderTree()
Return the header tree of columns.
|
PivotField[] |
getFields()
Return a list of all fields in the model.
|
PivotField[] |
getFields(PivotField.Type type)
Return a list of pivot fields of the given type.
|
PivotHeaderTree |
getRowHeaderTree()
Return the header tree of rows.
|
Object |
getValue(PivotHeaderNode rowNode,
int rowCalIndex,
PivotHeaderNode colNode,
int colCalIndex,
int dataIndex)
Get the calculated data summary at specific cell position.
|
void |
removePivotDataListener(PivotDataListener p)
Removes a pivot data listener.
|
PivotField[] getFields(PivotField.Type type)
PivotField
,
PivotField.Type
PivotField[] getFields()
PivotHeaderTree getRowHeaderTree()
PivotHeaderTree
PivotHeaderTree getColumnHeaderTree()
PivotHeaderTree
Object getValue(PivotHeaderNode rowNode, int rowCalIndex, PivotHeaderNode colNode, int colCalIndex, int dataIndex)
rowNode
- row node, root node means grand totalrowCalIndex
- row subtotal calculator index, -1 if not subtotalcolNode
- column node, root node means grand totalcolCalIndex
- column subtotal calculator index, -1 if not subtotaldataIndex
- index of data fieldsvoid addPivotDataListener(PivotDataListener p)
PivotDataListener
void removePivotDataListener(PivotDataListener p)
PivotDataListener
Copyright © 2017. All rights reserved.