Package library :: Package pyjamas :: Package media :: Module Media :: Class Media
[hide private]
[frames] | no frames]

Class Media

source code

      object --+            
      ui.Applier --+        
ui.UIObject.UIObject --+    
        ui.Widget.Widget --+

HasAbortHandlers, HasCanPlayHandlers, HasCanPlayThroughHandlers, HasDurationChangeHandlers, HasEmptiedHandlers, HasEndedHandlers, HasErrorHandlers, HasLoadStartHandlers, HasLoadedDataHandlers, HasLoadedMetadataHandlers, HasPauseHandlers, HasPlayHandlers, HasPlayingHandlers, HasProgressHandlers, HasRateChangeHandlers, HasSeekedHandlers, HasSeekingHandlers, HasStalledHandlers, HasSuspendHandlers, HasTimeUpdateHandlers, HasVolumeChangeHandlers, HasWaitingHandlers, HasAllMouseHandlers, HasClickHandlers

Instance Methods [hide private]
__init__(self, **kwargs)
use this to apply properties as a dictionary, e.g.:
source code
setSrc(self, src) source code
addSrc(self, src) source code
getSrc(self) source code
return (this.error == null) ? 0 : this.error;
source code
getCurrentSrc(self) source code
getCurrentTime(self) source code
setCurrentTime(self, time) source code
getStartTime(self) source code
getDuration(self) source code
isPaused(self) source code
getDefaultPlaybackRate(self) source code
setDefaultPlaybackRate(self, rate) source code
getPlaybackRate(self) source code
setPlaybackRate(self, rate) source code
getPlayed(self) source code
getSeekable(self) source code
hasEnded(self) source code
isLoop(self) source code
getVolume(self) source code
setVolume(self, volume) source code
getReadyState(self) source code
setAutobuffer(self, autobuffer) source code
setAutoplay(self, autoplay) source code
setLoop(self, loop) source code
setControls(self, controls) source code
hasControls(self) source code
isMuted(self) source code
play(self) source code
load(self) source code
pause(self) source code
canPlayType(self, etype) source code
setMute(self, muted) source code
addAbortHandler(self, handler) source code
addCanPlayHandler(self, handler) source code
addCanPlayThroughHandler(self, handler) source code
addDurationChangeHandle(self, handler) source code
addEmptiedHandler(self, handler) source code
addEndedHandler(self, handler) source code
addErrorHandler(self, handler) source code
addLoadStartHandler(self, handler) source code
addLoadedDataHandler(self, handler) source code
addLoadedMetadataHandler(self, handler) source code
addPauseHandler(self, handler) source code
addPlayHandler(self, handler) source code
addPlayingHandler(self, handler) source code
addProgressHandler(self, handler) source code
addRateChangeHandler(self, handler) source code
addSeekedHandler(self, handler) source code
addSeekingHandler(self, handler) source code
addStalledHandler(self, handler) source code
addSuspendHandler(self, handler) source code
addTimeUpdateHandler(self, handler) source code
addVolumeChangeHandler(self, handler) source code
addWaitingHandler(self, handler) source code
addMediaEventHandler(self, handler, etype) source code
sinkMediaEvents(self, eventBitsToAdd) source code
doAttachChildren(self) source code
nativeSinkMediaEvents(self, elem, bits) source code
addMouseDownHandler(self, handler) source code
addMouseUpHandler(self, handler) source code
addMouseOutHandler(self, handler) source code
addMouseOverHandler(self, handler) source code
addMouseMoveHandler(self, handler) source code
addMouseWheelHandler(self, handler) source code
addClickHandler(self, handler) source code
maybeInitMediaEvents(self) source code
initMediaEvents(self) source code
dispatchMediaEvent(self, evt, listener) source code

Inherited from ui.Widget.Widget: doDetachChildren, getID, getLayoutData, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setContextMenu, setID, setLayoutData, setParent

Inherited from ui.UIObject.UIObject: addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getClientHeight, getClientWidth, getElement, getHeight, getOffsetHeight, getOffsetWidth, getStyleAttribute, getStyleName, getStylePrimaryName, getTitle, getVisible, getWidth, isVisible, removeStyleDependentName, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleAttribute, setStyleName, setTitle, setVisible, setWidth, setzIndex, sinkEvents, unsinkEvents

Inherited from ui.Applier: applyValues, retrieveValues, setDefaults, setElementProperties, updateInstance

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from ui.UIObject.UIObject (private): _getProps

Inherited from ui.Applier (private): _getElementProps

Class Variables [hide private]

Inherited from ui.UIObject.UIObject (private): _props

Inherited from ui.Applier (private): _elem_props

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)

source code 

use this to apply properties as a dictionary, e.g.:

   x = klass(..., StyleName='class-name')

will do:

   x = klass(...)


   x = klass(..., Size=("100%", "20px"), Visible=False)

will do:

   x = klass(...)
   x.setSize("100%", "20px")
Overrides: object.__init__
(inherited documentation)


source code 
Overrides: ui.Widget.Widget.doAttachChildren