public class TextCell extends AbstractSafeHtmlCell<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<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<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<String>
context
- the original context to rendervalue
- a SafeHtml
stringsb
- the SafeHtmlBuilder
to be written toCopyright © 2018. All rights reserved.