|
GWT 2.4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.cell.client.AbstractCell<java.util.Date>
com.google.gwt.cell.client.DateCell
public class DateCell
A Cell
used to render Date
s.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell |
---|
Cell.Context |
Constructor Summary | |
---|---|
DateCell()
Construct a new DateCell using the format
DateTimeFormat.PredefinedFormat.DATE_FULL and a SimpleSafeHtmlRenderer . |
|
DateCell(DateTimeFormat format)
Construct a new DateCell using the specified format and a
SimpleSafeHtmlRenderer . |
|
DateCell(DateTimeFormat format,
SafeHtmlRenderer<java.lang.String> renderer)
Construct a new DateCell using the specified format and the given
SafeHtmlRenderer . |
|
DateCell(SafeHtmlRenderer<java.lang.String> renderer)
Construct a new DateCell using the format
DateTimeFormat.PredefinedFormat.DATE_FULL and a SimpleSafeHtmlRenderer . |
Method Summary | |
---|---|
void |
render(Cell.Context context,
java.util.Date value,
SafeHtmlBuilder sb)
Render a cell as HTML into a SafeHtmlBuilder , suitable for passing
to Element.setInnerHTML(String) on a container element. |
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 |
---|
public DateCell()
DateCell
using the format
DateTimeFormat.PredefinedFormat.DATE_FULL
and a SimpleSafeHtmlRenderer
.
public DateCell(SafeHtmlRenderer<java.lang.String> renderer)
DateCell
using the format
DateTimeFormat.PredefinedFormat.DATE_FULL
and a SimpleSafeHtmlRenderer
.
renderer
- a non-null SafeHtmlRenderer
used to render the
formatted date as HTMLpublic DateCell(DateTimeFormat format)
DateCell
using the specified format and a
SimpleSafeHtmlRenderer
.
format
- the DateTimeFormat
used to render the datepublic DateCell(DateTimeFormat format, SafeHtmlRenderer<java.lang.String> renderer)
DateCell
using the specified format and the given
SafeHtmlRenderer
.
format
- the DateTimeFormat
used to render the daterenderer
- a non-null SafeHtmlRenderer
used to render the
formatted dateMethod Detail |
---|
public void render(Cell.Context context, java.util.Date value, SafeHtmlBuilder sb)
Cell
SafeHtmlBuilder
, suitable for passing
to Element.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.
render
in interface Cell<java.util.Date>
render
in class AbstractCell<java.util.Date>
context
- the Cell.Context
of the cellvalue
- the cell value to be renderedsb
- the SafeHtmlBuilder
to be written to
|
GWT 2.4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |