photo.js
No description.

File Location

/goog/ui/media/photo.js

Classes

goog.ui.media.Photo
Subclasses a goog.ui.media.MediaRenderer to provide a Photo specific media renderer. Provides a base class for any other renderer that wants to display photos. This class is meant to be used as a singleton static stateless class, that takes goog.ui.media.Media instances and renders it. This design is patterned after http://go/closure_control_subclassing

Public Protected Private

Global Functions

goog.ui.media.Photo.getInstance()
No description.
code »
goog.ui.media.Photo.newControl(dataModel) !goog.ui.media.Media
A static convenient method to construct a goog.ui.media.Media control out of a photo goog.ui.media.MediaModel. It sets it as the data model goog.ui.media.Photo 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 Photos, except if you need finer control over the configuration.
Arguments:
dataModel : goog.ui.media.MediaModel
The photo data model.
Returns: !goog.ui.media.Media  A goog.ui.Control subclass with the photo renderer.
code »

Directory media

File Reference