Examples of asJavaScriptObject()


Examples of org.waveprotocol.wave.client.gadget.StateMap.asJavaScriptObject()

    if (waveEnabled) {
      String gadgetId = getGadgetId();
      StateMap privateState = StateMap.createFromStringMap(gadgetId != null ?
          supplement.getGadgetState(gadgetId) : CollectionUtils.<String> emptyMap());
      log("Sending private gadget state: ", privateState.toJson());
      sendPrivateGadgetStateRpc(getGadgetName(), privateState.asJavaScriptObject());
    }
  }

  /**
   * Sends the gadget mode to the wave gadget.
View Full Code Here

Examples of org.waveprotocol.wave.client.gadget.StateMap.asJavaScriptObject()

    if (waveEnabled) {
      StateMap mode = StateMap.create();
      mode.put(PLAYBACK_MODE_KEY, "0");
      mode.put(EDIT_MODE_KEY, editingIndicator.isEditing() ? "1" : "0");
      log("Sending gadget mode: ", mode.toJson());
      sendModeRpc(getGadgetName(), mode.asJavaScriptObject());
    }
  }

  /**
   * Returns the ID of the user who added the gadget as defined in the author
View Full Code Here

Examples of org.waveprotocol.wave.client.gadget.StateMap.asJavaScriptObject()

    if (waveEnabled) {
      String gadgetId = getGadgetId();
      StateMap privateState = StateMap.createFromStringMap(gadgetId != null ?
          supplement.getGadgetState(gadgetId) : CollectionUtils.<String> emptyMap());
      log("Sending private gadget state: ", privateState.toJson());
      sendPrivateGadgetStateRpc(getGadgetName(), privateState.asJavaScriptObject());
    }
  }

  /**
   * Sends the gadget mode to the wave gadget.
View Full Code Here

Examples of org.waveprotocol.wave.client.gadget.StateMap.asJavaScriptObject()

    if (waveEnabled) {
      StateMap mode = StateMap.create();
      mode.put(PLAYBACK_MODE_KEY, "0");
      mode.put(EDIT_MODE_KEY, editingIndicator.isEditing() ? "1" : "0");
      log("Sending gadget mode: ", mode.toJson());
      sendModeRpc(getGadgetName(), mode.asJavaScriptObject());
    }
  }

  /**
   * Returns the ID of the user who added the gadget as defined in the author
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.