|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.ui.components.grid.AbstractRenderer<java.util.Date>
com.vaadin.ui.components.grid.renderers.DateRenderer
public class DateRenderer
A renderer for presenting date values.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
Constructor Summary | |
---|---|
DateRenderer()
Creates a new date renderer. |
|
DateRenderer(java.text.DateFormat dateFormat)
Creates a new date renderer. |
|
DateRenderer(java.util.Locale locale)
Creates a new date renderer. |
|
DateRenderer(java.lang.String formatString)
Creates a new date renderer. |
|
DateRenderer(java.lang.String formatString,
java.util.Locale locale)
Creates a new date renderer. |
Method Summary | |
---|---|
protected java.lang.String |
doEncode(java.util.Date value)
Encodes the given value to an intermediate representation that can be serialized to JSON by Vaadin. |
java.lang.String |
toString()
|
Methods inherited from class com.vaadin.ui.components.grid.AbstractRenderer |
---|
encode, extend, getItemId, getPresentationType, getSupportedParentType |
Methods inherited from class com.vaadin.server.AbstractExtension |
---|
getParent, remove, setParent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.components.grid.Renderer |
---|
remove, setParent |
Methods inherited from interface com.vaadin.server.ClientConnector |
---|
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
Methods inherited from interface com.vaadin.shared.Connector |
---|
getConnectorId |
Constructor Detail |
---|
public DateRenderer()
The renderer is configured to render with the Date.toString()
representation for the default locale.
public DateRenderer(java.util.Locale locale) throws java.lang.IllegalArgumentException
The renderer is configured to render with the Date.toString()
representation for the given locale.
locale
- the locale in which to present dates
java.lang.IllegalArgumentException
- if locale
is null
public DateRenderer(java.lang.String formatString) throws java.lang.IllegalArgumentException
The renderer is configured to render with the given string format, as displayed in the default locale.
formatString
- the format string with which to format the date
java.lang.IllegalArgumentException
- if formatString
is null
public DateRenderer(java.lang.String formatString, java.util.Locale locale) throws java.lang.IllegalArgumentException
The renderer is configured to render with the given string format, as displayed in the given locale.
formatString
- the format string to format the date withlocale
- the locale to use
java.lang.IllegalArgumentException
- if either argument is null
public DateRenderer(java.text.DateFormat dateFormat) throws java.lang.IllegalArgumentException
The renderer is configured to render with he given date format.
dateFormat
- the date format to use when rendering dates
java.lang.IllegalArgumentException
- if dateFormat
is null
Method Detail |
---|
protected java.lang.String doEncode(java.util.Date value)
AbstractRenderer
This is a helper method intended to be overridden if the value must be
processed somehow but doing the JSON serialization manually is not
desired. For instance, a Renderer<Date>
could return a formatted
string from doEncode
.
doEncode
in class AbstractRenderer<java.util.Date>
value
- the value to be encoded
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |