|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.widgetideas.client.EmbeddedObject
com.google.gwt.widgetideas.client.YouTubeViewer
public class YouTubeViewer
A Widget used to embed a single YouTube video.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.client.EmbeddedObject |
---|
EmbeddedObject.EmbeddedObjectInfo |
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
static java.lang.String |
BASE_URL
The base URL of all YouTube videos. |
Fields inherited from class com.google.gwt.widgetideas.client.EmbeddedObject |
---|
TYPE_SHOCKWAVE |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
YouTubeViewer(java.lang.String movieID)
Constructor. |
|
YouTubeViewer(java.lang.String movieID,
boolean autoPlayEnabled)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getMovieID()
Get the movie ID. |
java.lang.String |
getURL()
Get the full URL of the video. |
boolean |
isAutoPlayEnabled()
Check whether or not autoPlay is enabled. |
boolean |
isRelatedVideosEnabled()
Check whether or not the player will show related videos. |
void |
setAutoPlayEnabled(boolean autoPlayEnabled)
Enable or disable autoPlay. |
void |
setMovieID(java.lang.String movieID)
Set the movie ID. |
void |
setRelatedVideosEnabled(boolean relatedVideosEnabled)
Enable or disable related videos in the player. |
Methods inherited from class com.google.gwt.widgetideas.client.EmbeddedObject |
---|
getInfo, render, setInfo, setInfo |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BASE_URL
Constructor Detail |
---|
public YouTubeViewer(java.lang.String movieID)
movieID
- the ID of the YouTube movie to playpublic YouTubeViewer(java.lang.String movieID, boolean autoPlayEnabled)
movieID
- the ID of the YouTube movie to playautoPlayEnabled
- true to automatically play moviesMethod Detail |
---|
public java.lang.String getMovieID()
public java.lang.String getURL()
public boolean isAutoPlayEnabled()
public boolean isRelatedVideosEnabled()
public void setAutoPlayEnabled(boolean autoPlayEnabled)
autoPlayEnabled
- true to enable autoPlaypublic void setMovieID(java.lang.String movieID)
movieID
- the movie IDpublic void setRelatedVideosEnabled(boolean relatedVideosEnabled)
relatedVideosEnabled
- true to enable related videos
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |