public class LocalDateRenderer extends AbstractRenderer<Object,LocalDate>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Constructor and Description |
|---|
LocalDateRenderer()
Creates a new LocalDateRenderer.
|
LocalDateRenderer(DateTimeFormatter formatter)
Creates a new LocalDateRenderer.
|
LocalDateRenderer(DateTimeFormatter formatter,
String nullRepresentation)
Creates a new LocalDateRenderer.
|
LocalDateRenderer(String formatPattern)
Creates a new LocalDateRenderer.
|
LocalDateRenderer(String formatPattern,
Locale locale)
Creates a new LocalDateRenderer.
|
LocalDateRenderer(String formatPattern,
Locale locale,
String nullRepresentation)
Creates a new LocalDateRenderer.
|
| Modifier and Type | Method and Description |
|---|---|
elemental.json.JsonValue |
encode(LocalDate value)
Encodes the given value into a
JsonValue. |
protected LocalDateRendererState |
getState()
Returns the shared state for this connector.
|
protected LocalDateRendererState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
encode, extend, getNullRepresentation, getParent, getParentGrid, getPresentationType, getSupportedParentTyperemove, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, 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, toString, wait, wait, waitaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdpublic LocalDateRenderer()
The renderer is configured to render with the grid's locale it is
attached to, with the format style being FormatStyle.LONG and an
empty string as its null representation.
public LocalDateRenderer(String formatPattern)
The renderer is configured to render with the given string format, as displayed in the grid's locale it is attached to, with an empty string as its null representation.
formatPattern - the format pattern to format the date with, not nullIllegalArgumentException - if format pattern is nullpublic LocalDateRenderer(String formatPattern, Locale locale)
The renderer is configured to render with the given string format, as displayed in the given locale, with an empty string as its null representation.
formatPattern - the format pattern to format the date with, not nulllocale - the locale to use, not nullIllegalArgumentException - if format pattern is nullIllegalArgumentException - if locale is nullpublic LocalDateRenderer(String formatPattern, Locale locale, String nullRepresentation)
The renderer is configured to render with the given string format, as displayed in the given locale.
formatPattern - the format pattern to format the date with, not nulllocale - the locale to use, not nullnullRepresentation - the textual representation of the null valueIllegalArgumentException - if format pattern is nullIllegalArgumentException - if locale is nullpublic LocalDateRenderer(DateTimeFormatter formatter)
The renderer is configured to render with the given formatter, with an empty string as its null representation.
formatter - the formatter to use, not nullIllegalArgumentException - if formatter is nullpublic LocalDateRenderer(DateTimeFormatter formatter, String nullRepresentation)
The renderer is configured to render with the given formatter.
formatter - the formatter to use, not nullnullRepresentation - the textual representation of the null valueIllegalArgumentException - if formatter is nullpublic elemental.json.JsonValue encode(LocalDate value)
RendererJsonValue.protected LocalDateRendererState getState()
AbstractClientConnector
As a side effect, marks the connector dirty so any changes done to the
state will be sent to the client. Use getState(false) to avoid
marking the connector as dirty.
getState in class AbstractRenderer<Object,LocalDate>protected LocalDateRendererState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class AbstractRenderer<Object,LocalDate>markAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()Copyright © 2017 Vaadin Ltd. All rights reserved.