March 2010
Intermediate to advanced
304 pages
8h 23m
English
The following classes are frequently used in Google Wave Gadgets.
This class represents the participants in a given wave.
| Constructor | Description |
|---|---|
wave.Participant() | Constructs a
wave.Participant |
| Method | Returns | Description |
|---|---|---|
getDisplayName() | String | Gets the human-readable display name of this participant |
getId() | String | Gets the unique identifier of this participant |
getThumbnailUrl() | String | Gets the URL of the thumbnail image for this participant |
This class represents the state object, which contains the key-value pairs associated with a gadget.
| Constructor | Description |
|---|---|
wave.State() | Constructs a wave.State |
| Method | Returns | Description |
|---|---|---|
get(key:String,
opt_default?:String) | String|null | Retrieves a value from the synchronized state. As of
now, get always returns a string. This
will change at some point to return whatever was
set. |
getKeys() | Array | Retrieves the valid keys for the synchronized state. |
reset() | None | Submits a delta to remove all key values in the state. |
submitDelta(delta:Object) | None | Updates the state delta. This is an asynchronous call that will update the state and not take effect immediately. Creating any key with a null value will attempt to delete the key. |
submitValue(key:String,
value:String) | None | Submits delta that contains only one key-value pair.
Note that if value is null, the key will be removed from the
state. See submitDelta(delta) for
semantic details. |
toString() | None | A utility method that pretty prints the current state object. Note this is a debug ... |