picasa.js
No description.

File Location

/goog/ui/media/picasa.js

Classes

goog.ui.media.PicasaAlbum
Subclasses a goog.ui.media.MediaRenderer to provide a Picasa specific media renderer. This class knows how to parse picasa URLs, and render the DOM structure of picasa album players and previews. This class is meant to be used as a singleton static stateless class, that takes goog.ui.media.Media instances and renders it. It expects goog.ui.media.Media.getModel to return a well formed, previously constructed, object with a user and album fields , which is the data model this renderer will use to construct the DOM structure. for a example of constructing a control with this renderer. goog.ui.media.PicasaAlbum currently displays a picasa-made flash slideshow with the photos, but could possibly display a handwritten js photo viewer, in case flash is not available. This design is patterned after http://go/closure_control_subclassing It uses goog.ui.media.FlashObject to embed the flash object.
goog.ui.media.PicasaAlbumModel
The goog.ui.media.PicasaAlbum media data model. It stores a required userId and albumId fields, sets the picasa album URL, and allows a few optional parameters.

Public Protected Private

Global Functions

goog.ui.media.PicasaAlbumModel.buildUrl(userIdalbumId) string
The opposite of newInstance: takes an userId and an albumId and builds a URL.
Arguments:
userId : string
The user that owns the album.
albumId : string
The album id.
Returns: string  The URL of the album.
code »
goog.ui.media.PicasaAlbum.getInstance()
No description.
code »
goog.ui.media.PicasaAlbum.newControl(dataModelopt_domHelper) !goog.ui.media.Media
A static convenient method to construct a goog.ui.media.Media control out of a picasa data model. It sets it as the data model goog.ui.media.PicasaAlbum renderer uses, sets the states supported by the renderer, and returns a Control that binds everything together. This is what you should be using for constructing Picasa albums, except if you need finer control over the configuration.
Arguments:
dataModel : goog.ui.media.PicasaAlbumModel
A picasa album data model.
opt_domHelper : goog.dom.DomHelper=
Optional DOM helper, used for document interaction.
Returns: !goog.ui.media.Media  A Control instance binded to the Picasa renderer.
code »
goog.ui.media.PicasaAlbumModel.newInstance(picasaUrlopt_captionopt_descriptionopt_autoplay) !goog.ui.media.PicasaAlbumModel
Gets a picasaUrl and extracts the user and album id.
Arguments:
picasaUrl : string
A picasa album URL.
opt_caption : string=
An optional caption of the picasa album.
opt_description : string=
An optional description of the picasa album.
opt_autoplay : boolean=
Whether to autoplay the slideshow.
Returns: !goog.ui.media.PicasaAlbumModel  The picasa album data model that represents the picasa URL.
code »

Directory media

File Reference