We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.ui.
Class VMediaBase
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.vaadin.terminal.gwt.client.ui.VMediaBase
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, Paintable
- extends com.google.gwt.user.client.ui.Widget
- implements Paintable
public abstract class VMediaBase
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 | |
---|---|
static String |
ATTR_ALT_TEXT
|
static String |
ATTR_AUTOPLAY
|
static String |
ATTR_CONTROLS
|
static String |
ATTR_HTML
|
static String |
ATTR_MUTED
|
static String |
ATTR_PAUSE
|
static String |
ATTR_PLAY
|
static String |
ATTR_RESOURCE
|
static String |
ATTR_RESOURCE_TYPE
|
protected ApplicationConnection |
client
|
static String |
TAG_SOURCE
|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
VMediaBase()
|
Method Summary | |
---|---|
protected abstract String |
getDefaultAltHtml()
|
void |
setMediaElement(com.google.gwt.dom.client.MediaElement element)
Sets the MediaElement that is to receive all commands and properties. |
protected boolean |
shouldShowControls(UIDL uidl)
|
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
|
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
ATTR_PAUSE
public static final String ATTR_PAUSE
See Also:
ATTR_PLAY
public static final String ATTR_PLAY
See Also:
ATTR_MUTED
public static final String ATTR_MUTED
See Also:
ATTR_CONTROLS
public static final String ATTR_CONTROLS
See Also:
ATTR_AUTOPLAY
public static final String ATTR_AUTOPLAY
See Also:
TAG_SOURCE
public static final String TAG_SOURCE
See Also:
ATTR_RESOURCE
public static final String ATTR_RESOURCE
See Also:
ATTR_RESOURCE_TYPE
public static final String ATTR_RESOURCE_TYPE
See Also:
ATTR_HTML
public static final String ATTR_HTML
See Also:
ATTR_ALT_TEXT
public static final String ATTR_ALT_TEXT
See Also:
client
protected ApplicationConnection client
Constructor Detail |
---|
VMediaBase
public VMediaBase()
Method Detail |
---|
setMediaElement
public void setMediaElement(com.google.gwt.dom.client.MediaElement element)
- Parameters:
element
-
Sets the MediaElement that is to receive all commands and properties.
updateFromUIDL
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
- Specified by:
updateFromUIDL
in interfacePaintable
shouldShowControls
protected boolean shouldShowControls(UIDL uidl)
getDefaultAltHtml
protected abstract String getDefaultAltHtml()
- Returns:
- the default HTML to show users with browsers that do not support HTML5 media markup.