com.vaadin.terminal.gwt.client.ui
Class MediaBaseConnector

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ui.AbstractConnector
      extended by com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
          extended by com.vaadin.terminal.gwt.client.ui.MediaBaseConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, StateChangeEvent.StateChangeHandler, ComponentConnector, Connector, Paintable, ServerConnector, Serializable
Direct Known Subclasses:
AudioConnector, VideoConnector

public abstract class MediaBaseConnector
extends AbstractComponentConnector
implements Paintable

See Also:
Serialized Form

Nested Class Summary
static interface MediaBaseConnector.MediaControl
          Server to client RPC interface for controlling playback of the media.
 
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_RESOURCE
           
static String ATTR_RESOURCE_TYPE
           
static String TAG_SOURCE
           
 
Constructor Summary
MediaBaseConnector()
           
 
Method Summary
 VMediaBase getWidget()
          Returns the widget associated with this paintable.
protected  void init()
          Called when the connector has been initialized.
protected  boolean shouldShowControls(UIDL uidl)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, getLayoutManager, getParent, getState, getStyleNames, hasEventListener, isEnabled, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setParent, setState, setWidgetEnabled
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractConnector
addStateChangeHandler, doInit, ensureHandlerManager, fireEvent, getConnection, getConnectorId, getRpcImplementations, isConnectorEnabled, registerRpc, unregisterRpc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.terminal.gwt.client.ServerConnector
addStateChangeHandler, doInit, fireEvent, getConnection, getRpcImplementations
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 

Field Detail

TAG_SOURCE

public static final String TAG_SOURCE
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

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
Constructor Detail

MediaBaseConnector

public MediaBaseConnector()
Method Detail

init

protected void init()
Description copied from class: AbstractConnector
Called when the connector has been initialized. Override this method to perform initialization of the connector.

Overrides:
init in class AbstractConnector

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)
Specified by:
updateFromUIDL in interface Paintable

shouldShowControls

protected boolean shouldShowControls(UIDL uidl)

getWidget

public VMediaBase getWidget()
Description copied from class: AbstractComponentConnector
Returns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.

Specified by:
getWidget in interface ComponentConnector
Overrides:
getWidget in class AbstractComponentConnector
Returns:
The widget associated with this paintable


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.