@Deprecated public class DateRenderer extends Grid.AbstractRenderer<Date>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Constructor and Description |
|---|
DateRenderer()
Deprecated.
Creates a new date renderer.
|
DateRenderer(DateFormat dateFormat)
Deprecated.
Creates a new date renderer.
|
DateRenderer(DateFormat dateFormat,
String nullRepresentation)
Deprecated.
Creates a new date renderer.
|
DateRenderer(Locale locale)
Deprecated.
Creates a new date renderer.
|
DateRenderer(Locale locale,
String nullRepresentation)
Deprecated.
Creates a new date renderer.
|
DateRenderer(String formatString)
Deprecated.
Creates a new date renderer.
|
DateRenderer(String formatString,
Locale locale)
Deprecated.
Creates a new date renderer.
|
DateRenderer(String formatString,
Locale locale,
String nullRepresentation)
Deprecated.
Creates a new date renderer.
|
DateRenderer(String formatString,
String nullRepresentation)
Deprecated.
Creates a new date renderer.
|
| Modifier and Type | Method and Description |
|---|---|
elemental.json.JsonValue |
encode(Date value)
Deprecated.
Encodes the given value into a
JsonValue. |
String |
getNullRepresentation()
Deprecated.
Null representation for the renderer.
|
String |
toString()
Deprecated.
|
encode, encodeValue, extend, getPresentationType, getSupportedParentTypeaddComponentToGrid, getColumn, getItemId, getParentGrid, refreshRow, remove, removeComponentFromGridgetParent, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic DateRenderer()
The renderer is configured to render with the Date.toString()
representation for the default locale.
public DateRenderer(Locale locale) throws IllegalArgumentException
The renderer is configured to render with the Date.toString()
representation for the given locale.
locale - the locale in which to present datesIllegalArgumentException - if locale is nullpublic DateRenderer(Locale locale, String nullRepresentation) throws IllegalArgumentException
The renderer is configured to render with the Date.toString()
representation for the given locale.
locale - the locale in which to present datesnullRepresentation - the textual representation of null valueIllegalArgumentException - if locale is nullpublic DateRenderer(String formatString) throws 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 dateIllegalArgumentException - if formatString is nullpublic DateRenderer(String formatString, String nullRepresentation) throws 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 datenullRepresentation - the textual representation of null valueIllegalArgumentException - if formatString is nullpublic DateRenderer(String formatString, Locale locale) throws 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 useIllegalArgumentException - if either argument is nullpublic DateRenderer(String formatString, Locale locale, String nullRepresentation) throws 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 usenullRepresentation - the textual representation of null valueIllegalArgumentException - if either argument is nullpublic DateRenderer(DateFormat dateFormat) throws IllegalArgumentException
The renderer is configured to render with he given date format.
dateFormat - the date format to use when rendering datesIllegalArgumentException - if dateFormat is nullpublic DateRenderer(DateFormat dateFormat, String nullRepresentation) throws IllegalArgumentException
The renderer is configured to render with he given date format.
dateFormat - the date format to use when rendering datesIllegalArgumentException - if dateFormat is nullpublic String getNullRepresentation()
Grid.AbstractRenderergetNullRepresentation in class Grid.AbstractRenderer<Date>nullpublic elemental.json.JsonValue encode(Date value)
RendererJsonValue.Copyright © 2019 Vaadin Ltd. All rights reserved.