Package com.google.gwt.cell.client
Class TextCell
- java.lang.Object
-
- com.google.gwt.cell.client.AbstractCell<C>
-
- com.google.gwt.cell.client.AbstractSafeHtmlCell<java.lang.String>
-
- com.google.gwt.cell.client.TextCell
-
- All Implemented Interfaces:
Cell<java.lang.String>
public class TextCell extends AbstractSafeHtmlCell<java.lang.String>
ACell
used to render text.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell
Cell.Context
-
-
Constructor Summary
Constructors Constructor Description TextCell()
Constructs a TextCell that uses aSimpleSafeHtmlRenderer
to render its text.TextCell(SafeHtmlRenderer<java.lang.String> renderer)
Constructs a TextCell that uses the providedSafeHtmlRenderer
to render its text.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
render(Cell.Context context, SafeHtml value, SafeHtmlBuilder sb)
Render the cell contents after they have been converted toSafeHtml
form.-
Methods inherited from class com.google.gwt.cell.client.AbstractSafeHtmlCell
getRenderer, render
-
Methods inherited from class com.google.gwt.cell.client.AbstractCell
dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, onBrowserEvent, onEnterKeyDown, resetFocus, setValue
-
-
-
-
Constructor Detail
-
TextCell
public TextCell()
Constructs a TextCell that uses aSimpleSafeHtmlRenderer
to render its text.
-
TextCell
public TextCell(SafeHtmlRenderer<java.lang.String> renderer)
Constructs a TextCell that uses the providedSafeHtmlRenderer
to render its text.- Parameters:
renderer
- aSafeHtmlRenderer
instance
-
-
Method Detail
-
render
public void render(Cell.Context context, SafeHtml value, SafeHtmlBuilder sb)
Description copied from class:AbstractSafeHtmlCell
Render the cell contents after they have been converted toSafeHtml
form.- Specified by:
render
in classAbstractSafeHtmlCell<java.lang.String>
- Parameters:
context
- the original context to rendervalue
- aSafeHtml
stringsb
- theSafeHtmlBuilder
to be written to
-
-