Package com.google.gwt.cell.client
Class SafeImageCell
- java.lang.Object
-
- com.google.gwt.cell.client.AbstractCell<SafeUri>
-
- com.google.gwt.cell.client.SafeImageCell
-
public class SafeImageCell extends AbstractCell<SafeUri>
An
AbstractCell
used to render an image by using aSafeUri
.If the images being displayed are static or available at compile time, using
ImageResourceCell
will usually be more efficient.- See Also:
ImageCell
,ImageResourceCell
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
SafeImageCell.Template
-
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell
Cell.Context
-
-
Constructor Summary
Constructors Constructor Description SafeImageCell()
Construct a new SafeImageCell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
render(Cell.Context context, SafeUri value, SafeHtmlBuilder sb)
Render a cell as HTML into aSafeHtmlBuilder
, suitable for passing toElement.setInnerHTML(String)
on a container element.-
Methods inherited from class com.google.gwt.cell.client.AbstractCell
dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, onBrowserEvent, onEnterKeyDown, resetFocus, setValue
-
-
-
-
Method Detail
-
render
public void render(Cell.Context context, SafeUri value, SafeHtmlBuilder sb)
Description copied from interface:Cell
Render a cell as HTML into aSafeHtmlBuilder
, suitable for passing toElement.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.
- Specified by:
render
in interfaceCell<SafeUri>
- Specified by:
render
in classAbstractCell<SafeUri>
- Parameters:
context
- theCell.Context
of the cellvalue
- the cell value to be renderedsb
- theSafeHtmlBuilder
to be written to
-
-