M - the model typepublic class AggregationRowConfig<M> extends Object
SummaryType can be used to "calculate" a value based on
the data. When using a summary type, EITHER a
NumberFormat or a AggregationRenderer can be used
to "format" the value.
AggregationRenderer for the
relevant columns. This renderer can any data as needed. The second method is
to provide a GXT Model that contains the values for the
aggregation row. In this case, the value will be retrieved from the model
using the property name associated with the column. With this method, you are
responsible for ensuring the model is updated any time the aggregation values
are updated.| Constructor and Description |
|---|
AggregationRowConfig()
Creates a new aggregation row config.s
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCellStyle(ColumnConfig<M,?> id)
Returns the cell style for the given column.
|
AggregationRenderer<M> |
getRenderer(ColumnConfig<M,?> id)
Returns the aggregation renderer for the given column.
|
void |
setCellStyle(ColumnConfig<M,?> id,
String style)
Sets the cell style for the given column.
|
void |
setRenderer(ColumnConfig<M,?> id,
AggregationRenderer<M> renderer)
Sets the aggregation renderer for the given column.
|
public AggregationRowConfig()
public String getCellStyle(ColumnConfig<M,?> id)
id - the column idpublic AggregationRenderer<M> getRenderer(ColumnConfig<M,?> id)
id - the column idpublic void setCellStyle(ColumnConfig<M,?> id, String style)
id - the column idstyle - the CSS style namepublic void setRenderer(ColumnConfig<M,?> id, AggregationRenderer<M> renderer)
id - the column idrenderer - the rendererCopyright © 2012. All Rights Reserved.