|
||||||||||
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.bramosystems.oss.player.core.client.spi.PlayerWidget
public class PlayerWidget
High level helper class to create widget for players.
The widget manages the DOM object of players as created by the PlayerElement
helper
class.
PlayerElement
Nested Class Summary |
---|
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 |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
PlayerWidget(String playerProvider,
String playerName,
String playerId,
String mediaURL,
boolean autoplay)
Creates a PlayerWidget |
Method Summary | |
---|---|
void |
addParam(String name,
String value)
Adds the specified parameters to the element. |
String |
getParam(String name)
Returns the value of the specified parameter |
protected void |
onLoad()
|
void |
removeParam(String name)
Removes the specified parameter from the parameter map. |
void |
replace(String playerProvider,
String playerName,
String playerId,
String mediaURL,
boolean autoplay)
Replaces the DOM object of this widget with another created with the specified information |
void |
setHeight(String height)
|
void |
setWidth(String width)
|
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlayerWidget(String playerProvider, String playerName, String playerId, String mediaURL, boolean autoplay)
playerProvider
- the player provider to consult for browser-specific implementationsplayerName
- the name of the player to be createdplayerId
- the DOM ID of the playermediaURL
- the URL of the media to be embeddedautoplay
- true
to autoplay the media, false
otherwise.Method Detail |
---|
public void addParam(String name, String value)
name
- the name of the parametervalue
- the value of the parameterpublic void removeParam(String name)
name
- the parameter to be removed from the parameter mappublic String getParam(String name)
name
- the parameter
protected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
public void setHeight(String height)
setHeight
in class com.google.gwt.user.client.ui.UIObject
public void setWidth(String width)
setWidth
in class com.google.gwt.user.client.ui.UIObject
public void replace(String playerProvider, String playerName, String playerId, String mediaURL, boolean autoplay)
playerProvider
- the player provider to consult for browser-specific implementationsplayerName
- the name of the player to be createdplayerId
- the DOM ID of the playermediaURL
- the URL of the media to be embeddedautoplay
- true
to autoplay the media, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |