Class AtmospherePushConnection.AbstractJSO

java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.vaadin.client.communication.AtmospherePushConnection.AbstractJSO
Direct Known Subclasses:
AtmospherePushConnection.AtmosphereConfiguration, AtmospherePushConnection.AtmosphereResponse
Enclosing class:
AtmospherePushConnection

public abstract static class AtmospherePushConnection.AbstractJSO extends com.google.gwt.core.client.JavaScriptObject
JavaScriptObject class with some helper methods to set and get primitive values.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    JavaScriptObject constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final boolean
    Gets the given property value as a boolean.
    protected final int
    Gets the given property value as an int.
    protected final String
    Gets the given property value as a String.
    protected final void
    setBooleanValue(String key, boolean value)
    Sets the given property value as a boolean.
    protected final void
    setIntValue(String key, int value)
    Sets the given property value as an int.
    protected final void
    Sets the given property value as a String.

    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

    • AbstractJSO

      protected AbstractJSO()
      JavaScriptObject constructor.
  • Method Details

    • getStringValue

      protected final String getStringValue(String key)
      Gets the given property value as a String.
      Parameters:
      key - the key of the property
      Returns:
      the property value
    • setStringValue

      protected final void setStringValue(String key, String value)
      Sets the given property value as a String.
      Parameters:
      key - the key of the property
      value - the property value
    • getIntValue

      protected final int getIntValue(String key)
      Gets the given property value as an int.
      Parameters:
      key - the key of the property
      Returns:
      the property value
    • setIntValue

      protected final void setIntValue(String key, int value)
      Sets the given property value as an int.
      Parameters:
      key - the key of the property
      value - the property value
    • getBooleanValue

      protected final boolean getBooleanValue(String key)
      Gets the given property value as a boolean.
      Parameters:
      key - the key of the property
      Returns:
      the property value
    • setBooleanValue

      protected final void setBooleanValue(String key, boolean value)
      Sets the given property value as a boolean.
      Parameters:
      key - the key of the property
      value - the property value