public abstract class

AbstractSafeHtmlCell

extends AbstractCell<C>
java.lang.Object
   ↳ com.google.gwt.cell.client.AbstractCell<C>
     ↳ com.google.gwt.cell.client.AbstractSafeHtmlCell<C>
Known Direct Subclasses

Class Overview

A superclass for Cells that render or escape a String argument as HTML.

Summary

Public Constructors
AbstractSafeHtmlCell(SafeHtmlRenderer<C> renderer, String... consumedEvents)
Construct an AbstractSafeHtmlCell using a given SafeHtmlRenderer that will consume a given set of events.
AbstractSafeHtmlCell(SafeHtmlRenderer<C> renderer, Set<String> consumedEvents)
Construct an AbstractSafeHtmlCell using a given SafeHtmlRenderer that will consume a given set of events.
Public Methods
SafeHtmlRenderer<C> getRenderer()
Return the SafeHtmlRenderer used by this cell.
void render(Cell.Context context, C data, SafeHtmlBuilder sb)
Render a cell as HTML into a SafeHtmlBuilder, suitable for passing to setInnerHTML(String) on a container element.
Protected Methods
abstract void render(Cell.Context context, SafeHtml data, SafeHtmlBuilder sb)
Render the cell contents after they have been converted to SafeHtml form.
[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 AbstractSafeHtmlCell (SafeHtmlRenderer<C> renderer, String... consumedEvents)

Construct an AbstractSafeHtmlCell using a given SafeHtmlRenderer that will consume a given set of events.

Parameters
renderer a SafeHtmlRenderer
consumedEvents a varargs list of event names

public AbstractSafeHtmlCell (SafeHtmlRenderer<C> renderer, Set<String> consumedEvents)

Construct an AbstractSafeHtmlCell using a given SafeHtmlRenderer that will consume a given set of events.

Parameters
renderer a SafeHtmlRenderer
consumedEvents a Set of event names

Public Methods

public SafeHtmlRenderer<C> getRenderer ()

Return the SafeHtmlRenderer used by this cell.

Returns

public void render (Cell.Context context, C data, 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
data the cell value to be rendered
sb the SafeHtmlBuilder to be written to

Protected Methods

protected abstract void render (Cell.Context context, SafeHtml data, SafeHtmlBuilder sb)

Render the cell contents after they have been converted to SafeHtml form.

Parameters
context the original context to render
data a SafeHtml string
sb the SafeHtmlBuilder to be written to