|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.pivot.impl.SimplePivotRenderer
public class SimplePivotRenderer
A basic implementation of PivotRenderer.
| Constructor Summary | |
|---|---|
SimplePivotRenderer()
|
|
| Method Summary | |
|---|---|
int |
getColumnSize(Pivottable table,
PivotHeaderContext colc,
PivotField field)
Returns the column size in pixel. |
int |
getRowSize(Pivottable table,
PivotHeaderContext rowc,
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 |
renderCellSClass(java.lang.Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
Specify a CSS class on the cell. |
java.lang.String |
renderCellStyle(java.lang.Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
Specify the CSS style on the 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePivotRenderer()
| Method Detail |
|---|
public java.lang.String renderCell(java.lang.Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
PivotRenderer
renderCell in interface PivotRendererdata - data objectrowContext - row header context objectcolumnContext - column header context objectPivotHeaderContext
public int getColumnSize(Pivottable table,
PivotHeaderContext colc,
PivotField field)
PivotRendererNote that the cell field always from 0 to m, and the returned value is never negative.
getColumnSize in interface PivotRenderertable - the Pivottablecolc - 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)
public int getRowSize(Pivottable table,
PivotHeaderContext rowc,
PivotField field)
PivotRendererNote that the cell field always from 0 to m, and the returned value is never negative.
getRowSize in interface PivotRenderertable - the Pivottablerowc - 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)
public java.lang.String renderField(java.lang.Object data,
Pivottable table,
PivotField field)
PivotRenderer
renderField in interface PivotRendererdata - data objectfield - PivotFieldPivotField
public java.lang.String renderGrandTotalField(Pivottable table,
PivotField field)
PivotRenderer
renderGrandTotalField in interface PivotRendererfield - a data PivotField
public java.lang.String renderSubtotalField(java.lang.Object data,
Pivottable table,
PivotField field,
Calculator calculator)
PivotRenderer
renderSubtotalField in interface PivotRendererdata - data objectfield - PivotFieldcalculator - the subtotal calculatorPivotField,
Calculatorpublic java.lang.String renderDataField(PivotField field)
PivotRenderer
renderDataField in interface PivotRenderer
public java.lang.String renderCellSClass(java.lang.Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
PivotRendererExt
renderCellSClass in interface PivotRendererExtdata - data objectrowContext - row header context objectcolumnContext - column header context object
PivotHeaderContext
public java.lang.String renderCellStyle(java.lang.Number data,
Pivottable table,
PivotHeaderContext rowContext,
PivotHeaderContext columnContext,
PivotField dataField)
PivotRendererExt
renderCellStyle in interface PivotRendererExtdata - data objectrowContext - row header context objectcolumnContext - column header context object
PivotHeaderContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||