public class CustomPlayerControl
extends com.google.gwt.user.client.ui.Composite
.player-CustomPlayerControl { the player control }
.player-CustomPlayerControl-seekbar { the seekbar of the control }
.player-CustomPlayerControl-seekbar .loading { the seekbars' loading progress indicator }
.player-CustomPlayerControl-seekbar .playing { the seekbars' playing progress indicator }
.player-CustomPlayerControl-volumeControl { the volume controls' slider widget }
.player-CustomPlayerControl-volumeControl .volume { the volume level indicator }
.player-CustomPlayerControl-volumeControl .track { the volume sliders' track indicator }
Modifier and Type | Class and Description |
---|---|
static interface |
CustomPlayerControl.UIStyleResource
Defines the CSS class names used by the CustomPlayerControl widget.
|
Constructor and Description |
---|
CustomPlayerControl(AbstractMediaPlayer player)
Contructs CustomPlayerControl object.
|
CustomPlayerControl(AbstractMediaPlayer player,
CustomPlayerControl.UIStyleResource cssResource)
Constructs CustomPlayerControl to control the specified player using the
specified CSS resource bundle for the control buttons.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onUnload()
Overriden to release resources.
|
void |
setStyleName(String style)
Sets the CSS style name of this widget as well as the seekbar and
the volume controls' slider widgets.
|
void |
setStylePrimaryName(String style)
Sets the primary CSS style name of this widget as well as the seekbar and
the volume controls' slider widgets.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents
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, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
public CustomPlayerControl(AbstractMediaPlayer player)
player
- the player object to controlpublic CustomPlayerControl(AbstractMediaPlayer player, CustomPlayerControl.UIStyleResource cssResource)
player
- the player object to controlcssResource
- the CSS style bundle for the control buttonspublic void setStylePrimaryName(String style)
setStylePrimaryName
in class com.google.gwt.user.client.ui.UIObject
style
- the CSS style namepublic void setStyleName(String style)
setStyleName
in class com.google.gwt.user.client.ui.UIObject
style
- the CSS style nameprotected void onUnload()
onUnload
in class com.google.gwt.user.client.ui.Widget
Copyright © 2009-2013. All Rights Reserved.