com.gwtext.client.widgets.grid
Interface Renderer
public interface Renderer
Inteface for custom Grid column rendering.
- See Also:
ColumnConfig.setRenderer(Renderer)
Method Summary |
java.lang.String |
render(java.lang.Object value,
CellMetadata cellMetadata,
Record record,
int rowIndex,
int colNum,
Store store)
Renderer function. |
render
java.lang.String render(java.lang.Object value,
CellMetadata cellMetadata,
Record record,
int rowIndex,
int colNum,
Store store)
- Renderer function.
- Parameters:
value
- the cells value. When working with numberic data, cast the value to Number
and not to a specific data type line Integer or Float as the class type is inferred from the datacellMetadata
- the grid cell metadata. Can be use to customize the apperanace of the grid cellrecord
- the record corresponding to the rowrowIndex
- the row indexcolNum
- the column numberstore
- the Grid's data store
- Returns:
- the rendered cell content (can include html)