The goog.ui.media.MediaModel.Thumbnail Class

goog.ui.media.MediaModel.Thumbnail(url, opt_size)

Constructs a thumbnail containing details of the thumbnail's image URL and optionally its size.

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

.getSize()

Gets the thumbnail size.

returns {goog.math.Size}
The size of the thumbnail's image if known.

.getUrl()

Gets the thumbnail URL.

returns {string}
The thumbnail's image URL.

.setSize(size)

Sets the thumbnail size.

size {goog.math.Size}
The size of the thumbnail's image.
returns {goog.ui.media.MediaModel.Thumbnail}
The object itself, used for chaining.

.setUrl(url)

Sets the thumbnail URL.

url {string}
The thumbnail's image URL.
returns {goog.ui.media.MediaModel.Thumbnail}
The object itself, used for chaining.