Class 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.HasVisibility, com.google.gwt.user.client.ui.IsWidget
    Direct Known Subclasses:
    VAudio, VVideo

    public abstract class VMediaBase
    extends com.google.gwt.user.client.ui.Widget
    • 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

      Constructors 
      Constructor Description
      VMediaBase()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSource​(String sourceUrl, String sourceType)  
      void load()  
      void pause()  
      void play()  
      void removeAllSources()  
      void setAltText​(String alt)  
      void setAutoplay​(boolean shouldAutoplay)  
      void setControls​(boolean shouldShowControls)  
      void setLoop​(boolean loop)
      Enables or disables looping.
      void setMediaElement​(com.google.gwt.dom.client.MediaElement element)
      Sets the MediaElement that is to receive all commands and properties.
      void setMuted​(boolean mediaMuted)  
      void setPreload​(String preload)
      Sets the preload attribute that is intended to provide a hint to the browser how the media should be preloaded.
      • 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, unsinkEvents
      • 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • 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 -
      • play

        public void play()
      • pause

        public void pause()
      • setAltText

        public void setAltText​(String alt)
      • setControls

        public void setControls​(boolean shouldShowControls)
      • setAutoplay

        public void setAutoplay​(boolean shouldAutoplay)
      • setMuted

        public void setMuted​(boolean mediaMuted)
      • setPreload

        public void setPreload​(String preload)
        Sets the preload attribute that is intended to provide a hint to the browser how the media should be preloaded. See AbstractMedia.setPreload(PreloadMode) and PreloadMode for more information.
        Parameters:
        preload - preload mode
        Since:
        7.7.11
      • setLoop

        public void setLoop​(boolean loop)
        Enables or disables looping.
        Parameters:
        loop - if true, enable looping
        Since:
        7.7.11
      • removeAllSources

        public void removeAllSources()
      • load

        public void load()
      • addSource

        public void addSource​(String sourceUrl,
                              String sourceType)