|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CellMetadata
Handle to the Grid cell metadata passed to a Grid Column Renderer. This allows
fine grained coltrol to the column Renderer to custom render a grid cell. You can
customize a Grid cell appearance by either using setCssClass(String)
or
setHtmlAttribute(String)
. There is a subtle difference between the two methods that is best illustrated
by an example.
So when cellMetadata.setHtmlAttribute("style=\"background:yellow;\""); is called, the DIV within the cell TD has its attributes set.
<td tabindex="0" class="x-grid-col x-grid-td-2 x-grid-cell-6-2 x-grid-dirty-cell x-grid-cell-selected" id="ext-gen353">
<div class="x-grid-col-2 x-grid-cell-inner"><div style="background: yellow none repeat scroll 0%; -moz-background-clip:-moz-initial; -moz-background-origin: -moz-initial;-moz-background-inline-policy: -moz-initial;" unselectable="on" class="x-grid-cell-text">$4.41</div>
</div>
</td>
<td tabindex="0" class="x-grid-col x-grid-td-2 x-grid-cell-6-2 x-grid-dirty-cell x-grid-cell-selected mystyle" id="ext-gen353"><div class="x-grid-col-2 x-grid-cell-inner">
<div style="-moz-background-clip: -moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy: -moz-initial;"unselectable="on" class="x-grid-cell-text">$4.41</div></div>
</td>
ColumnConfig.setRenderer(Renderer)
,
Renderer
Method Summary | |
---|---|
void |
setCssClass(java.lang.String cssClass)
Sets the CSS style to the table cell. |
void |
setHtmlAttribute(java.lang.String htmlAttribute)
Sets the HTML attribute definition to the data container element within the table cell. |
Method Detail |
---|
void setCssClass(java.lang.String cssClass)
cssClass
- CSS classvoid setHtmlAttribute(java.lang.String htmlAttribute)
htmlAttribute
- the html attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |