ui.media.MediaModel.Thumbnail Extends
Constructs a thumbnail containing details of the thumbnail's image URL and optionally its size.

Inheritance

Constructor

goog.ui.media.MediaModel.Thumbnail(urlopt_size)

Parameters

url : string
The URL of the thumbnail's image.
opt_size : goog.math.Size=
The size of the thumbnail's image if known.

Instance Methods

Public Protected Private
getSize() goog.math.Size
Gets the thumbnail size.
Returns: goog.math.Size  The size of the thumbnail's image if known.
code »
getUrl() string
Gets the thumbnail URL.
Returns: string  The thumbnail's image URL.
code »
Sets the thumbnail size.
Arguments:
size : goog.math.Size
The size of the thumbnail's image.
Returns: !goog.ui.media.MediaModel.Thumbnail  The object itself, used for chaining.
code »
Sets the thumbnail URL.
Arguments:
url : string
The thumbnail's image URL.
Returns: !goog.ui.media.MediaModel.Thumbnail  The object itself, used for chaining.
code »

Instance Properties

size_ : goog.math.Size
The size of the thumbnail's image if known.
Code »
url_ :
The thumbnail's image URL.
Code »

Package ui.media.MediaModel

Package Reference