GWT 2.1.0

com.google.gwt.cell.client
Class TextCell

java.lang.Object
  extended by com.google.gwt.cell.client.AbstractCell<C>
      extended by com.google.gwt.cell.client.AbstractSafeHtmlCell<java.lang.String>
          extended by com.google.gwt.cell.client.TextCell
All Implemented Interfaces:
Cell<java.lang.String>

public class TextCell
extends AbstractSafeHtmlCell<java.lang.String>

A Cell used to render text.


Constructor Summary
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.
 
Method Summary
 void render(SafeHtml value, java.lang.Object key, SafeHtmlBuilder sb)
          Render the cell contents after they have been converted to SafeHtml 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCell

public TextCell()
Constructs a TextCell that uses a SimpleSafeHtmlRenderer to render its text.


TextCell

public TextCell(SafeHtmlRenderer<java.lang.String> renderer)
Constructs a TextCell that uses the provided SafeHtmlRenderer to render its text.

Parameters:
renderer - a SafeHtmlRenderer instance
Method Detail

render

public void render(SafeHtml value,
                   java.lang.Object key,
                   SafeHtmlBuilder sb)
Description copied from class: AbstractSafeHtmlCell
Render the cell contents after they have been converted to SafeHtml form.

Specified by:
render in class AbstractSafeHtmlCell<java.lang.String>
Parameters:
value - a SafeHtml string
key - the unique key associated with the row object
sb - the SafeHtmlBuilder to be written to

GWT 2.1.0