com.vaadin.client.ui.grid
Interface Renderer<T>

Type Parameters:
T - The column type
All Known Implementing Classes:
ButtonRenderer, ComplexRenderer, DateRenderer, HtmlRenderer, ImageRenderer, MultiSelectionRenderer, NumberRenderer, ProgressBarRenderer, TextRenderer, UnsafeHtmlRendererConnector.UnsafeHtmlRenderer, WidgetRenderer

public interface Renderer<T>

Renderer for rending a value <T> into cell.

You can add a renderer to any column by overring the Grid.AbstractGridColumn.getRenderer() method and returning your own renderer. You can retrieve the cell element using Cell.getElement().

Since:
Author:
Vaadin Ltd

Method Summary
 void render(FlyweightCell cell, T data)
          Called whenever the Grid updates a cell
 

Method Detail

render

void render(FlyweightCell cell,
            T data)
Called whenever the Grid updates a cell

Parameters:
cell - The cell. Note that the cell is a flyweight and should not be stored outside of the method as it will change.
data - The column data object


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.