| Constructor and Description |
|---|
DateRenderer()
Constructs a renderer for displaying date data.
|
DateRenderer(com.google.gwt.i18n.shared.DateTimeFormat.PredefinedFormat format)
Constructs a renderer for displaying date data.
|
DateRenderer(com.google.gwt.i18n.shared.DateTimeFormat format)
Constructs a renderer for displaying date data.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.i18n.shared.DateTimeFormat |
getFormat()
Gets the format of how the date is formatted.
|
com.google.gwt.i18n.client.TimeZone |
getTimeZone()
Returns the time zone of the date.
|
void |
render(RendererCellReference cell,
Date date)
Called whenever the
Grid updates a cell. |
void |
setFormat(com.google.gwt.i18n.shared.DateTimeFormat format)
Sets the format used for formatting the dates.
|
void |
setTimeZone(com.google.gwt.i18n.client.TimeZone timeZone)
Sets the time zone of the the date.
|
public DateRenderer()
public DateRenderer(com.google.gwt.i18n.shared.DateTimeFormat.PredefinedFormat format)
format - the required display formatpublic DateRenderer(com.google.gwt.i18n.shared.DateTimeFormat format)
format - the required display formatpublic void render(RendererCellReference cell, Date date)
RendererGrid updates a cell.
For optimal performance, work done in this method should be kept to a
minimum since it will be called continuously while the user is scrolling.
It is recommended to set up the cell's DOM structure in
ComplexRenderer.init(RendererCellReference) and only make
incremental updates based on cell data in this method.
public com.google.gwt.i18n.shared.DateTimeFormat getFormat()
public void setFormat(com.google.gwt.i18n.shared.DateTimeFormat format)
format - the format to setpublic com.google.gwt.i18n.client.TimeZone getTimeZone()
public void setTimeZone(com.google.gwt.i18n.client.TimeZone timeZone)
timeZone - the timeZone to setCopyright © 2021 Vaadin Ltd. All rights reserved.