com.bramosystems.oss.player.core.client.skin
Class CustomPlayerControl

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.bramosystems.oss.player.core.client.skin.CustomPlayerControl
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

public class CustomPlayerControl
extends com.google.gwt.user.client.ui.Composite

Custom player control widget.

CSS Styles

 .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 }
 

Author:
Sikirulai Braheem

Nested Class Summary
static interface CustomPlayerControl.ImagePack
          Deprecated. As of version 1.2, replaced with CustomPlayerControl.UIStyleResource. Will be removed in a future release.
static interface CustomPlayerControl.UIStyleResource
          Defines the CSS class names used by the CustomPlayerControl widget.
 
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
CustomPlayerControl(AbstractMediaPlayer player)
          Contructs CustomPlayerControl object.
CustomPlayerControl(AbstractMediaPlayer player, CustomPlayerControl.ImagePack imagePack)
          Deprecated. As of version 1.2. Will be removed in a future version
CustomPlayerControl(AbstractMediaPlayer player, CustomPlayerControl.UIStyleResource cssResource)
          Constructs CustomPlayerControl to control the specified player using the specified CSS resource bundle for the control buttons.
 
Method Summary
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.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, 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, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomPlayerControl

public CustomPlayerControl(AbstractMediaPlayer player)
Contructs CustomPlayerControl object.

Parameters:
player - the player object to control

CustomPlayerControl

public CustomPlayerControl(AbstractMediaPlayer player,
                           CustomPlayerControl.UIStyleResource cssResource)
Constructs CustomPlayerControl to control the specified player using the specified CSS resource bundle for the control buttons.

Parameters:
player - the player object to control
cssResource - the CSS style bundle for the control buttons
Since:
1.2

CustomPlayerControl

public CustomPlayerControl(AbstractMediaPlayer player,
                           CustomPlayerControl.ImagePack imagePack)
Deprecated. As of version 1.2. Will be removed in a future version

Constructs CustomPlayerControl to control the specified player using the specified image icons for the control buttons.

Parameters:
player - the player object to control
imagePack - the control button icons
Method Detail

setStylePrimaryName

public void setStylePrimaryName(String style)
Sets the primary CSS style name of this widget as well as the seekbar and the volume controls' slider widgets.

Overrides:
setStylePrimaryName in class com.google.gwt.user.client.ui.UIObject
Parameters:
style - the CSS style name

setStyleName

public void setStyleName(String style)
Sets the CSS style name of this widget as well as the seekbar and the volume controls' slider widgets.

Overrides:
setStyleName in class com.google.gwt.user.client.ui.UIObject
Parameters:
style - the CSS style name

onUnload

protected void onUnload()
Overriden to release resources.

Overrides:
onUnload in class com.google.gwt.user.client.ui.Widget


Copyright © 2009-2011. All Rights Reserved.