public class

ImageCell

extends AbstractCell<C>
java.lang.Object
   ↳ com.google.gwt.cell.client.AbstractCell<C>
     ↳ com.google.gwt.cell.client.ImageCell

Class Overview

An AbstractCell used to render an image. The String value is the url of the image.

If the images being displayed are static or available at compile time, using ImageResourceCell will usually be more efficient.

Summary

Public Constructors
ImageCell()
Construct a new ImageCell.
Public Methods
void render(Cell.Context context, String value, SafeHtmlBuilder sb)
Render a cell as HTML into a SafeHtmlBuilder, suitable for passing to setInnerHTML(String) on a container element.
[Expand]
Inherited Methods
From class com.google.gwt.cell.client.AbstractCell
From class java.lang.Object
From interface com.google.gwt.cell.client.Cell

Public Constructors

public ImageCell ()

Construct a new ImageCell.

Public Methods

public void render (Cell.Context context, String value, SafeHtmlBuilder sb)

Render a cell as HTML into a SafeHtmlBuilder, suitable for passing to setInnerHTML(String) on a container element.

Note: If your cell contains natively focusable elements, such as buttons or input elements, be sure to set the tabIndex to -1 so that they do not steal focus away from the containing widget.

Parameters
context the Context of the cell
value the cell value to be rendered
sb the SafeHtmlBuilder to be written to