public class

DateCell

extends AbstractCell<C>
java.lang.Object
   ↳ com.google.gwt.cell.client.AbstractCell<C>
     ↳ com.google.gwt.cell.client.DateCell

Class Overview

A Cell used to render Dates.

Summary

Public Constructors
DateCell()
Construct a new DateCell using the format DATE_FULL and a SimpleSafeHtmlRenderer.
DateCell(SafeHtmlRenderer<String> renderer)
Construct a new DateCell using the format DATE_FULL and a SimpleSafeHtmlRenderer.
DateCell(DateTimeFormat format)
Construct a new DateCell using the specified format and a SimpleSafeHtmlRenderer.
DateCell(DateTimeFormat format, SafeHtmlRenderer<String> renderer)
Construct a new DateCell using the specified format and the given SafeHtmlRenderer.
Public Methods
void render(Cell.Context context, Date value, SafeHtmlBuilder sb)
Render a cell as HTML into a SafeHtmlBuilder, suitable for passing to setInnerHTML(String) on a container element.
[Expand]
Inherited Methods
From class com.google.gwt.cell.client.AbstractCell
From class java.lang.Object
From interface com.google.gwt.cell.client.Cell

Public Constructors

public DateCell ()

Construct a new DateCell using the format DATE_FULL and a SimpleSafeHtmlRenderer.

public DateCell (SafeHtmlRenderer<String> renderer)

Construct a new DateCell using the format DATE_FULL and a SimpleSafeHtmlRenderer.

Parameters
renderer a non-null SafeHtmlRenderer used to render the formatted date as HTML

public DateCell (DateTimeFormat format)

Construct a new DateCell using the specified format and a SimpleSafeHtmlRenderer.

Parameters
format the DateTimeFormat used to render the date

public DateCell (DateTimeFormat format, SafeHtmlRenderer<String> renderer)

Construct a new DateCell using the specified format and the given SafeHtmlRenderer.

Parameters
format the DateTimeFormat used to render the date
renderer a non-null SafeHtmlRenderer used to render the formatted date

Public Methods

public void render (Cell.Context context, Date value, SafeHtmlBuilder sb)

Render a cell as HTML into a SafeHtmlBuilder, suitable for passing to setInnerHTML(String) on a container element.

Note: If your cell contains natively focusable elements, such as buttons or input elements, be sure to set the tabIndex to -1 so that they do not steal focus away from the containing widget.

Parameters
context the Context of the cell
value the cell value to be rendered
sb the SafeHtmlBuilder to be written to