public class DateSerializer extends Object implements JSONSerializer<Date>
| Constructor and Description |
|---|
DateSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Date |
deserialize(Type type,
JsonValue jsonValue,
ConnectorTracker connectorTracker)
Creates and deserializes an object received from the client.
|
JsonValue |
serialize(Date value,
ConnectorTracker connectorTracker)
Serialize the given object into JSON.
|
public Date deserialize(Type type, JsonValue jsonValue, ConnectorTracker connectorTracker)
JSONSerializerJSONSerializer.serialize(Object, ConnectorTracker) and also
with the client side com.vaadin.client.communication.JSONSerializer.deserialize in interface JSONSerializer<Date>type - The expected return typejsonValue - the value from the JSONconnectorTracker - the connector tracker instance for the UIpublic JsonValue serialize(Date value, ConnectorTracker connectorTracker)
JSONSerializerJSONSerializer.deserialize(Type, JsonValue, ConnectorTracker) and the client
side com.vaadin.client.communication.JSONSerializerserialize in interface JSONSerializer<Date>value - The object to serializeconnectorTracker - The connector tracker instance for the UICopyright © 2018 Vaadin Ltd. All rights reserved.