com.vaadin.client.renderers
Class ImageRenderer
java.lang.Object
com.vaadin.client.renderers.ComplexRenderer<T>
com.vaadin.client.renderers.WidgetRenderer<T,W>
com.vaadin.client.renderers.ClickableRenderer<java.lang.String,Image>
com.vaadin.client.renderers.ImageRenderer
- All Implemented Interfaces:
- Renderer<java.lang.String>
public class ImageRenderer
- extends ClickableRenderer<java.lang.String,Image>
A renderer that renders an image into a cell. Click handlers can be added to
the renderer, invoked every time any of the images rendered by that rendered
is clicked.
- Since:
- 7.4
- Author:
- Vaadin Ltd
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRANSPARENT_GIF_1PX
public static final java.lang.String TRANSPARENT_GIF_1PX
- See Also:
- Constant Field Values
ImageRenderer
public ImageRenderer()
createWidget
public Image createWidget()
- Description copied from class:
ClickableRenderer
- Creates a widget to attach to a cell. The widgets will be attached to the
cell after the cell element has been attached to DOM.
Implementation note: It is the implementing method's
responsibility to add this as a click handler of the returned
widget, or a widget nested therein, in order to make click events
propagate properly to handlers registered via
addClickHandler.
- Specified by:
createWidget in class ClickableRenderer<java.lang.String,Image>
- Returns:
- widget to attach to a cell. All returned instances should be new
widget instances without a parent.
render
public void render(RendererCellReference cell,
java.lang.String url,
Image image)
- Description copied from class:
WidgetRenderer
- Renders a cell with a widget. This provides a way to update any
information in the widget that is cell specific. Do not detach the Widget
here, it will be done automatically by the Grid when the widget is no
longer needed.
- Specified by:
render in class WidgetRenderer<java.lang.String,Image>
- Parameters:
cell - the cell to renderurl - the data of the cellimage - the widget embedded in the cell
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.