Uses of Interface
elemental.json.JsonValue
-
-
Uses of JsonValue in com.vaadin.client
Methods in com.vaadin.client with type parameters of type JsonValue Modifier and Type Method Description static <T extends JsonValue>
TUtil. jso2json(com.google.gwt.core.client.JavaScriptObject jso)
Converts a nativeJavaScriptObject
into aJsonValue
.Methods in com.vaadin.client with parameters of type JsonValue Modifier and Type Method Description static com.google.gwt.core.client.JavaScriptObject
Util. json2jso(JsonValue jsonValue)
Converts aJsonValue
into a nativeJavaScriptObject
. -
Uses of JsonValue in com.vaadin.client.communication
Methods in com.vaadin.client.communication with type parameters of type JsonValue Modifier and Type Method Description static <T extends JsonValue>
TJsonDecoder. obj2jso(Object object)
Called by generated deserialization code to treat a generic object as a JsonValue.Methods in com.vaadin.client.communication that return JsonValue Modifier and Type Method Description static JsonValue
JsonEncoder. encode(Object value, Type type, ApplicationConnection connection)
Encode a value to a JSON representation for transport from the client to the server.JsonValue
Date_Serializer. serialize(Date value, ApplicationConnection connection)
JsonValue
JSONSerializer. serialize(T value, ApplicationConnection connection)
Serialize the given object into JSON.JsonValue
URLReference_Serializer. serialize(URLReference value, ApplicationConnection connection)
Methods in com.vaadin.client.communication with parameters of type JsonValue Modifier and Type Method Description static Object
JsonDecoder. decodeValue(Type type, JsonValue jsonValue, Object target, ApplicationConnection connection)
Decode a JSON array with two elements (type and value) into a client-side type, recursively if necessary.Date
Date_Serializer. deserialize(Type type, JsonValue jsonValue, ApplicationConnection connection)
T
JSONSerializer. deserialize(Type type, JsonValue jsonValue, ApplicationConnection connection)
Creates and deserializes an object received from the server.URLReference
URLReference_Serializer. deserialize(Type type, JsonValue jsonValue, ApplicationConnection connection)
void
DiffJSONSerializer. update(T target, Type type, JsonValue jsonValue, ApplicationConnection connection)
Update the target object in place based on the passed JSON data. -
Uses of JsonValue in com.vaadin.client.connectors
Methods in com.vaadin.client.connectors with parameters of type JsonValue Modifier and Type Method Description T
AbstractRendererConnector. decode(JsonValue value)
Decodes the given JSON value into a value of type T so it can be passed to therenderer
.String
ImageRendererConnector. decode(JsonValue value)
Object
JavaScriptRendererConnector. decode(JsonValue value)
-
Uses of JsonValue in com.vaadin.server
Methods in com.vaadin.server that return JsonValue Modifier and Type Method Description JsonValue
EncodeResult. getDiff()
JsonValue
EncodeResult. getDiffOrValue()
JsonValue
EncodeResult. getEncodedValue()
Methods in com.vaadin.server with parameters of type JsonValue Modifier and Type Method Description static Object
JsonCodec. decodeCustomType(Type targetType, JsonValue value, ConnectorTracker connectorTracker)
static Object
JsonCodec. decodeInternalOrCustomType(Type targetType, JsonValue value, ConnectorTracker connectorTracker)
static Object
JsonCodec. decodeInternalType(Type targetType, boolean restrictToInternalTypes, JsonValue encodedJsonValue, ConnectorTracker connectorTracker)
Decodes a value that is of an internal type.static EncodeResult
JsonCodec. encode(Object value, JsonValue diffState, Type valueType, ConnectorTracker connectorTracker)
static boolean
JsonCodec. jsonEquals(JsonValue a, JsonValue b)
Compares two json values for deep equality.Constructors in com.vaadin.server with parameters of type JsonValue Constructor Description EncodeResult(JsonValue encodedValue)
EncodeResult(JsonValue encodedValue, JsonValue diff)
-
Uses of JsonValue in com.vaadin.server.communication
Methods in com.vaadin.server.communication that return JsonValue Modifier and Type Method Description JsonValue
DateSerializer. serialize(Date value, ConnectorTracker connectorTracker)
JsonValue
JSONSerializer. serialize(T value, ConnectorTracker connectorTracker)
Serialize the given object into JSON.Methods in com.vaadin.server.communication with parameters of type JsonValue Modifier and Type Method Description Date
DateSerializer. deserialize(Type type, JsonValue jsonValue, ConnectorTracker connectorTracker)
T
JSONSerializer. deserialize(Type type, JsonValue jsonValue, ConnectorTracker connectorTracker)
Creates and deserializes an object received from the client. -
Uses of JsonValue in com.vaadin.ui
Methods in com.vaadin.ui that return JsonValue Modifier and Type Method Description JsonValue
Grid.AbstractRenderer. encode(T value)
protected <U> JsonValue
Grid.AbstractRenderer. encode(U value, Class<U> type)
Encodes the given value to JSON.static <T> JsonValue
Grid.AbstractRenderer. encodeValue(Object modelValue, Renderer<T> renderer, Converter<?,?> converter, Locale locale)
Converts and encodes the given data model property value using the given converter and renderer. -
Uses of JsonValue in com.vaadin.ui.renderers
Methods in com.vaadin.ui.renderers that return JsonValue Modifier and Type Method Description JsonValue
DateRenderer. encode(Date value)
JsonValue
ImageRenderer. encode(Resource resource)
JsonValue
NumberRenderer. encode(Number value)
JsonValue
ProgressBarRenderer. encode(Double value)
JsonValue
Renderer. encode(T value)
Encodes the given value into aJsonValue
. -
Uses of JsonValue in elemental.json
Subinterfaces of JsonValue in elemental.json Modifier and Type Interface Description interface
JsonArray
Represents a Json array.interface
JsonBoolean
Represents a Json boolean.interface
JsonNull
Represents the Json null value.interface
JsonNumber
Represents a Json number value.interface
JsonObject
Represents a Json object.interface
JsonString
Represents a Json String value.Methods in elemental.json with type parameters of type JsonValue Modifier and Type Method Description <T extends JsonValue>
TJsonArray. get(int index)
Return the ith element of the array.<T extends JsonValue>
TJsonObject. get(String key)
Return the element (uncoerced) as a JsonValue.<T extends JsonValue>
TJsonFactory. parse(String jsonString)
Parse a String in JSON format and return a JsonValue of the appropriate type.Methods in elemental.json with parameters of type JsonValue Modifier and Type Method Description boolean
JsonValue. jsEquals(JsonValue value)
Equivalent of Javascript '==' operator comparison between two values.void
JsonObject. put(String key, JsonValue value)
Set a given key to the given value.void
JsonArray. set(int index, JsonValue value)
Set the value at index to be a given value. -
Uses of JsonValue in elemental.json.impl
Classes in elemental.json.impl that implement JsonValue Modifier and Type Class Description class
JreJsonArray
Server-side implementation of JsonArray.class
JreJsonBoolean
Server-side implementation of JsonBoolean.class
JreJsonNull
Server-side implementation of JsonObject.class
JreJsonNumber
Server-side implementation of JsonNumber.class
JreJsonObject
Server-side implementation of JsonObject.class
JreJsonString
Server-side implementation of JsonString.class
JreJsonValue
JRE (non-Client) implementation of JreJsonValue.Methods in elemental.json.impl with type parameters of type JsonValue Modifier and Type Method Description <T extends JsonValue>
TJreJsonFactory. parse(String jsonString)
static <T extends JsonValue>
TJsonUtil. parse(String json)
protected static <T extends JsonValue>
TJreJsonValue. parseJson(ObjectInputStream stream)
Methods in elemental.json.impl that return JsonValue Modifier and Type Method Description JsonValue
JreJsonArray. get(int index)
JsonValue
JreJsonObject. get(String key)
Methods in elemental.json.impl with parameters of type JsonValue Modifier and Type Method Description boolean
JreJsonArray. jsEquals(JsonValue value)
boolean
JreJsonBoolean. jsEquals(JsonValue value)
boolean
JreJsonNull. jsEquals(JsonValue value)
boolean
JreJsonNumber. jsEquals(JsonValue value)
boolean
JreJsonObject. jsEquals(JsonValue value)
boolean
JreJsonString. jsEquals(JsonValue value)
void
JreJsonObject. put(String key, JsonValue value)
void
JreJsonArray. set(int index, JsonValue value)
void
JreJsonObject. set(String key, JsonValue value)
static String
JsonUtil. stringify(JsonValue jsonValue)
Converts a Json Object to Json format.static String
JsonUtil. stringify(JsonValue jsonValue, int spaces)
Converts a JSO to Json format.static String
JsonUtil. stringify(JsonValue jsonValue, String indent)
Converts a Json object to Json formatted String.
-