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

Direct Known Subclasses:

VAudio, VVideo

public abstract class VMediaBase
extends com.google.gwt.user.client.ui.Widget
implements Paintable

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:

Constant Field Values

ATTR_PLAY

public static final String ATTR_PLAY

See Also:

Constant Field Values

ATTR_MUTED

public static final String ATTR_MUTED

See Also:

Constant Field Values

ATTR_CONTROLS

public static final String ATTR_CONTROLS

See Also:

Constant Field Values

ATTR_AUTOPLAY

public static final String ATTR_AUTOPLAY

See Also:

Constant Field Values

TAG_SOURCE

public static final String TAG_SOURCE

See Also:

Constant Field Values

ATTR_RESOURCE

public static final String ATTR_RESOURCE

See Also:

Constant Field Values

ATTR_RESOURCE_TYPE

public static final String ATTR_RESOURCE_TYPE

See Also:

Constant Field Values

ATTR_HTML

public static final String ATTR_HTML

See Also:

Constant Field Values

ATTR_ALT_TEXT

public static final String ATTR_ALT_TEXT

See Also:

Constant Field Values

client

protected ApplicationConnection client
Constructor Detail

VMediaBase

public VMediaBase()
Method Detail

setMediaElement

public void setMediaElement(com.google.gwt.dom.client.MediaElement element)

Sets the MediaElement that is to receive all commands and properties.

Parameters:
element -

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)

Specified by:
updateFromUIDL in interface Paintable

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.