Skip to Main Content
Google Wave: Up and Running
book

Google Wave: Up and Running

by Andres Ferrate
March 2010
Intermediate to advanced content levelIntermediate to advanced
304 pages
8h 23m
English
O'Reilly Media, Inc.
Content preview from Google Wave: Up and Running

Classes

The following classes are frequently used in Google Wave Gadgets.

Participant

This class represents the participants in a given wave.

Constructor

ConstructorDescription
wave.Participant()Constructs a wave.Participant

Methods

MethodReturnsDescription
getDisplayName()StringGets the human-readable display name of this participant
getId()StringGets the unique identifier of this participant
getThumbnailUrl()StringGets the URL of the thumbnail image for this participant

State

This class represents the state object, which contains the key-value pairs associated with a gadget.

Constructor

ConstructorDescription
wave.State()Constructs a wave.State

Methods

MethodReturnsDescription
get(key:String, opt_default?:String)String|nullRetrieves 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()ArrayRetrieves the valid keys for the synchronized state.
reset()NoneSubmits a delta to remove all key values in the state.
submitDelta(delta:Object)NoneUpdates 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)NoneSubmits 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()NoneA utility method that pretty prints the current state object. Note this is a debug ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google™ Search and Tools in a Snap

Google™ Search and Tools in a Snap

Preston Gralla
SUSE™ Linux 10 Unleashed

SUSE™ Linux 10 Unleashed

Michael McCallister

Publisher Resources

ISBN: 9781449378646Errata PagePurchase book