|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PivotRenderer
PivotRenderer defines some methods for Pivottable
to render the
content to the browser.
Note: The content can support HTML formatting.
Method Summary | |
---|---|
int |
getColumnSize(Pivottable table,
PivotHeaderContext columnContext,
PivotField field)
Returns the column size in pixel. |
int |
getRowSize(Pivottable table,
PivotHeaderContext rowContext,
PivotField field)
Returns the row size in pixel. |
java.lang.String |
renderCell(java.lang.Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
Renders the content of each cell. |
java.lang.String |
renderDataField(PivotField field)
Renders the label of a data field, shown when there are multiple data fields. |
java.lang.String |
renderField(java.lang.Object data,
Pivottable table,
PivotField field)
Renders the label of a header field in columns and rows. |
java.lang.String |
renderGrandTotalField(Pivottable table,
PivotField field)
Renders the title of a grand total field. |
java.lang.String |
renderSubtotalField(java.lang.Object data,
Pivottable table,
PivotField field,
Calculator calculator)
Renders the label of a subtotal field. |
Method Detail |
---|
java.lang.String renderCell(java.lang.Number data, Pivottable table, PivotHeaderContext rowContext, PivotHeaderContext columnContext, PivotField dataField)
data
- data objectrowContext
- row header context objectcolumnContext
- column header context objectPivotHeaderContext
java.lang.String renderField(java.lang.Object data, Pivottable table, PivotField field)
data
- data objectfield
- PivotFieldPivotField
java.lang.String renderDataField(PivotField field)
java.lang.String renderSubtotalField(java.lang.Object data, Pivottable table, PivotField field, Calculator calculator)
data
- data objectfield
- PivotFieldcalculator
- the subtotal calculatorPivotField
,
Calculator
java.lang.String renderGrandTotalField(Pivottable table, PivotField field)
field
- a data PivotFieldint getColumnSize(Pivottable table, PivotHeaderContext columnContext, PivotField field)
Note that the cell field always from 0 to m, and the returned value is never negative.
table
- the PivottablecolumnContext
- information of the corresponding columnfield
- the field corresponds to the leaf column cell. Can be row,
column, data field, or null (only in the case of grand total)int getRowSize(Pivottable table, PivotHeaderContext rowContext, PivotField field)
Note that the cell field always from 0 to m, and the returned value is never negative.
table
- the PivottablerowContext
- information of the corresponding rowfield
- the field corresponds to the leaf row cell. Can be row,
column, data field, or null (only in the case of grand total)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |