|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.cell.client.AbstractCell<ImageResource>
com.google.gwt.cell.client.ImageResourceCell
public class ImageResourceCell
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 ImageResource.getURL().
| Constructor Summary | |
|---|---|
ImageResourceCell()
Construct a new ImageResourceCell. |
|
| Method Summary | |
|---|---|
void |
render(ImageResource value,
java.lang.Object key,
SafeHtmlBuilder sb)
Render a cell as HTML into a SafeHtmlBuilder, suitable for passing
to Element.setInnerHTML(java.lang.String) on a container element. |
| Methods inherited from class com.google.gwt.cell.client.AbstractCell |
|---|
dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, onBrowserEvent, onEnterKeyDown, resetFocus, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageResourceCell()
| Method Detail |
|---|
public void render(ImageResource value,
java.lang.Object key,
SafeHtmlBuilder sb)
CellSafeHtmlBuilder, suitable for passing
to Element.setInnerHTML(java.lang.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.
render in interface Cell<ImageResource>render in class AbstractCell<ImageResource>value - the cell value to be renderedkey - the unique key associated with the row objectsb - the SafeHtmlBuilder to be written to
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||