Package com.google.gwt.cell.client
Class AbstractSafeHtmlCell<C>
java.lang.Object
com.google.gwt.cell.client.AbstractCell<C>
com.google.gwt.cell.client.AbstractSafeHtmlCell<C>
- Type Parameters:
C
- the type that this Cell represents
- All Implemented Interfaces:
Cell<C>
- Direct Known Subclasses:
ButtonCell
,ClickableTextCell
,TextCell
A superclass for
Cell
s that render or escape a String argument as
HTML.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell
Cell.Context
-
Constructor Summary
ConstructorDescriptionAbstractSafeHtmlCell
(SafeHtmlRenderer<C> renderer, String... consumedEvents) Construct an AbstractSafeHtmlCell using a givenSafeHtmlRenderer
that will consume a given set of events.AbstractSafeHtmlCell
(SafeHtmlRenderer<C> renderer, Set<String> consumedEvents) Construct an AbstractSafeHtmlCell using a givenSafeHtmlRenderer
that will consume a given set of events. -
Method Summary
Modifier and TypeMethodDescriptionReturn theSafeHtmlRenderer
used by this cell.protected abstract void
render
(Cell.Context context, SafeHtml data, SafeHtmlBuilder sb) Render the cell contents after they have been converted toSafeHtml
form.void
render
(Cell.Context context, C data, 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
-
Constructor Details
-
Method Details
-
getRenderer
Return theSafeHtmlRenderer
used by this cell.- Returns:
- a
SafeHtmlRenderer
instance
-