public class

ImageResourceCell

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

Class Overview

An AbstractCell used to render an ImageResource.

This class assumes that the URL returned from ImageResource is safe from script attacks. If you do not generate the ImageResource from a ClientBundle, you should use UriUtils to sanitize the URL before returning it from getURL().

Summary

Public Constructors
ImageResourceCell()
Construct a new ImageResourceCell.
Public Methods
void render(Cell.Context context, ImageResource 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 ImageResourceCell ()

Construct a new ImageResourceCell.

Public Methods

public void render (Cell.Context context, ImageResource 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