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
    Modifier
    Constructor
    Description
    protected
    JSO constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the map contains the given key.
    int
    getInt(String name)
    Gets the value with the given key as an integer.
    Gets the value with the given key as an string array.
    Gets the value with the given key as a string.
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ValueMap

      protected ValueMap()
      JSO constructor.
  • Method Details

    • 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
    • getValueMap

      public ValueMap getValueMap(String name)
      Gets the value with the given key as a map.
      Parameters:
      name - the map key
      Returns:
      the value as a map