|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.widget.grid.AggregationRowConfig<M>
M
- the model typepublic class AggregationRowConfig<M extends ModelData>
Defines the configuration information for an aggregation row. The values for each column can be configured and calculated in several ways. The following methods are supported in order of precedence.
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 Summary | |
---|---|
AggregationRowConfig()
Creates a new aggregation row config.s |
Method Summary | |
---|---|
java.lang.String |
getCellStyle(java.lang.String id)
Returns the cell style for the given column. |
java.lang.String |
getHtml(java.lang.String id)
Returns the html for the given column. |
ModelData |
getModel()
Returns the model. |
AggregationRenderer<M> |
getRenderer(java.lang.String id)
Returns the aggregation renderer for the given column. |
com.google.gwt.i18n.client.NumberFormat |
getSummaryFormat(java.lang.String id)
Returns the summary format for the given column. |
SummaryType<?> |
getSummaryType(java.lang.String id)
Returns the summary type for the given column. |
com.google.gwt.user.client.ui.Widget |
getWidget(java.lang.String id)
Returns the widget for the given column. |
void |
setCellStyle(java.lang.String id,
java.lang.String style)
Sets the cell style for the given column. |
void |
setHtml(java.lang.String id,
java.lang.String html)
Sets the static HTML for the given column. |
void |
setModel(ModelData model)
Sets the model that contains the values for the aggregation row. |
void |
setRenderer(java.lang.String id,
AggregationRenderer<M> renderer)
Sets the aggregation renderer for the given column. |
void |
setSummaryFormat(java.lang.String id,
com.google.gwt.i18n.client.NumberFormat format)
Sets the number format for the given column. |
void |
setSummaryType(java.lang.String id,
SummaryType<?> type)
Sets the summary type for the given column. |
void |
setWidget(java.lang.String id,
com.google.gwt.user.client.ui.Widget widget)
Sets the widget for the given column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregationRowConfig()
Method Detail |
---|
public java.lang.String getCellStyle(java.lang.String id)
id
- the column id
public java.lang.String getHtml(java.lang.String id)
id
- the column id
public ModelData getModel()
public AggregationRenderer<M> getRenderer(java.lang.String id)
id
- the column id
public com.google.gwt.i18n.client.NumberFormat getSummaryFormat(java.lang.String id)
id
- the column id
public SummaryType<?> getSummaryType(java.lang.String id)
id
- the column id
public com.google.gwt.user.client.ui.Widget getWidget(java.lang.String id)
id
- the column id
public void setCellStyle(java.lang.String id, java.lang.String style)
id
- the column idstyle
- the CSS style namepublic void setHtml(java.lang.String id, java.lang.String html)
id
- the column idhtml
- the htmlpublic void setModel(ModelData model)
model
- the modelpublic void setRenderer(java.lang.String id, AggregationRenderer<M> renderer)
id
- the column idrenderer
- the rendererpublic void setSummaryFormat(java.lang.String id, com.google.gwt.i18n.client.NumberFormat format)
SummaryType
.
id
- the column idformat
- the number formatpublic void setSummaryType(java.lang.String id, SummaryType<?> type)
id
- the column idtype
- the summary typepublic void setWidget(java.lang.String id, com.google.gwt.user.client.ui.Widget widget)
id
- the column idwidget
- the widget
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |