|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.grid.renderers.DateRenderer
public class DateRenderer
A renderer for rendering dates into cells
| Constructor Summary | |
|---|---|
DateRenderer()
|
|
DateRenderer(DateTimeFormat format)
|
|
DateRenderer(PredefinedFormat format)
|
|
| Method Summary | |
|---|---|
DateTimeFormat |
getFormat()
Gets the format of how the date is formatted. |
TimeZone |
getTimeZone()
Returns the time zone of the date. |
void |
render(FlyweightCell cell,
java.util.Date date)
Called whenever the Grid updates a cell |
void |
setFormat(DateTimeFormat format)
Sets the format used for formatting the dates. |
void |
setTimeZone(TimeZone timeZone)
Sets the time zone of the the date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateRenderer()
public DateRenderer(PredefinedFormat format)
public DateRenderer(DateTimeFormat format)
| Method Detail |
|---|
public void render(FlyweightCell cell,
java.util.Date date)
RendererGrid updates a cell
render in interface Renderer<java.util.Date>cell - The cell. Note that the cell is a flyweight and should not be
stored outside of the method as it will change.date - The column data objectpublic DateTimeFormat getFormat()
public void setFormat(DateTimeFormat format)
format - the format to setpublic TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
timeZone - the timeZone to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||