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.JavaScriptObjectOld abstraction for a UIDL JSON message.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValueMap()JSO constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(String name)Checks if the map contains the given key.intgetInt(String name)Gets the value with the given key as an integer.JsArray<String>getJSStringArray(String name)Gets the value with the given key as an string array.StringgetString(String name)Gets the value with the given key as a string.ValueMapgetValueMap(String name)Gets the value with the given key as a map.
-
-
-
Method Detail
-
getInt
public int getInt(String name)
Gets the value with the given key as an integer.- Parameters:
name- the map key- Returns:
- the value as an integer
-
getString
public String getString(String name)
Gets the value with the given key as a string.- Parameters:
name- the map key- Returns:
- the value as a string
-
getJSStringArray
public JsArray<String> getJSStringArray(String name)
Gets the value with the given key as an string array.- Parameters:
name- the map key- Returns:
- the value as a string array
-
containsKey
public boolean containsKey(String name)
Checks if the map contains the given key.- Parameters:
name- the map key- Returns:
- true if the map contains the key, false otherwise
-
-