Package com.vaadin.client
Class ValueMap
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.vaadin.client.ValueMap
public final class ValueMap
extends com.google.gwt.core.client.JavaScriptObject
Old abstraction for a UIDL JSON message.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String name) Checks if the map contains the given key.intGets the value with the given key as an integer.getJSStringArray(String name) Gets the value with the given key as an string array.Gets the value with the given key as a string.getValueMap(String name) Gets the value with the given key as a map.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
ValueMap
protected ValueMap()JSO constructor.
-
-
Method Details
-
getInt
Gets the value with the given key as an integer.- Parameters:
name- the map key- Returns:
- the value as an integer
-
getString
Gets the value with the given key as a string.- Parameters:
name- the map key- Returns:
- the value as a string
-
getJSStringArray
Gets the value with the given key as an string array.- Parameters:
name- the map key- Returns:
- the value as a string array
-
containsKey
Checks if the map contains the given key.- Parameters:
name- the map key- Returns:
- true if the map contains the key, false otherwise
-
getValueMap
Gets the value with the given key as a map.- Parameters:
name- the map key- Returns:
- the value as a map
-