|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.grid.renderers.ComplexRenderer<T>
com.vaadin.client.ui.grid.renderers.WidgetRenderer<T,W>
T - the row data typeW - the Widget typepublic abstract class WidgetRenderer<T,W extends Widget>
A renderer for rendering widgets into cells.
| Constructor Summary | |
|---|---|
WidgetRenderer()
|
|
| Method Summary | |
|---|---|
abstract W |
createWidget()
Creates a widget to attach to a cell. |
protected static Cell |
getCell(NativeEvent event)
Returns the cell instance corresponding to the element that the given event originates from. |
protected W |
getWidget(Element e)
|
void |
init(FlyweightCell cell)
Called at initialization stage. |
void |
render(FlyweightCell cell,
T data)
Called whenever the Grid updates a cell |
abstract void |
render(FlyweightCell cell,
T data,
W widget)
Renders a cell with a widget. |
| Methods inherited from class com.vaadin.client.ui.grid.renderers.ComplexRenderer |
|---|
destroy, destroy, getConsumedEvents, onActivate, onBrowserEvent, setContentVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetRenderer()
| Method Detail |
|---|
public void init(FlyweightCell cell)
ComplexRenderer
init in class ComplexRenderer<T>cell - The cell. Note that the cell is not to be stored outside of
the method as the cell install will change. See
FlyweightCellpublic abstract W createWidget()
public void render(FlyweightCell cell,
T data)
RendererGrid updates a cell
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
public abstract void render(FlyweightCell cell,
T data,
W widget)
cell - the cell to renderdata - the data of the cellwidget - the widget embedded in the cellprotected W getWidget(Element e)
protected static Cell getCell(NativeEvent event)
event - the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||