public class TextCell extends AbstractSafeHtmlCell<java.lang.String>
Cell
used to render text.Cell.Context
Constructor and Description |
---|
TextCell()
Constructs a TextCell that uses a
SimpleSafeHtmlRenderer to render
its text. |
TextCell(SafeHtmlRenderer<java.lang.String> renderer)
Constructs a TextCell that uses the provided
SafeHtmlRenderer to
render its text. |
Modifier and Type | Method and Description |
---|---|
void |
render(Cell.Context context,
SafeHtml value,
SafeHtmlBuilder sb)
Render the cell contents after they have been converted to
SafeHtml
form. |
getRenderer, render
dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, onBrowserEvent, onEnterKeyDown, resetFocus, setValue
public TextCell()
SimpleSafeHtmlRenderer
to render
its text.public TextCell(SafeHtmlRenderer<java.lang.String> renderer)
SafeHtmlRenderer
to
render its text.renderer
- a SafeHtmlRenderer
instancepublic void render(Cell.Context context, SafeHtml value, SafeHtmlBuilder sb)
AbstractSafeHtmlCell
SafeHtml
form.render
in class AbstractSafeHtmlCell<java.lang.String>
context
- the original context to rendervalue
- a SafeHtml
stringsb
- the SafeHtmlBuilder
to be written to