Package com.google.gwt.cell.client
Class ImageCell
- java.lang.Object
-
- com.google.gwt.cell.client.AbstractCell<java.lang.String>
-
- com.google.gwt.cell.client.ImageCell
-
- All Implemented Interfaces:
Cell<java.lang.String>
public class ImageCell extends AbstractCell<java.lang.String>
An
AbstractCellused 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
ImageResourceCellwill usually be more efficient.- See Also:
ImageResourceCell
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceImageCell.Template-
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell
Cell.Context
-
-
Constructor Summary
Constructors Constructor Description ImageCell()Construct a new ImageCell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrender(Cell.Context context, java.lang.String 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, java.lang.String value, SafeHtmlBuilder sb)
Description copied from interface:CellRender 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:
renderin interfaceCell<java.lang.String>- Specified by:
renderin classAbstractCell<java.lang.String>- Parameters:
context- theCell.Contextof the cellvalue- the cell value to be renderedsb- theSafeHtmlBuilderto be written to
-
-