|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.bramosystems.oss.player.core.client.skin.VolumeControl
public class VolumeControl
Widget to control the volume of a player. The control is placed on a player as an icon which when clicked upon, opens a popup panel containing the slider widget for the volume.
VolumeChangeHandlers are notified whenever the slider is adjusted.
.player-VolumeControl { the slider widget }
.player-VolumeControl .volume { the volume level indicator }
.player-VolumeControl .track { the sliders' track indicator }
VolumeChangeHandler| 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 | |
|---|---|
VolumeControl(com.google.gwt.user.client.ui.Image icon,
int sliderHeight)
Constructs VolumeControl. |
|
VolumeControl(int sliderHeight)
Constructs VolumeControl. |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addVolumeChangeHandler(VolumeChangeHandler handler)
Adds the specified handler to the player. |
protected void |
initWidget(com.google.gwt.user.client.ui.Widget widget)
Overridden to prevent subclasses from changing the wrapped widget. |
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
|
void |
setPopupStyleName(String styleName)
Assigns a CSS style class name to the volume slider popup panel. |
void |
setVolume(double volume)
Sets the level of the volume slider control. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, 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, onUnload, 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, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public VolumeControl(com.google.gwt.user.client.ui.Image icon,
int sliderHeight)
VolumeControl. The control is displayed as the
specified icon. An horizontal slider of height sliderHeight is
displayed when the icon is clicked on.
The slider popup panel has a fixed width of 50px.
icon - represents the volume control object.sliderHeight - the height of the volume slider control.public VolumeControl(int sliderHeight)
VolumeControl. This constructor is provided for complete CSS styling
support. An horizontal slider of height sliderHeight is
displayed when this control is clicked on.
The slider popup panel has a fixed width of 50px.
sliderHeight - the height of the volume slider control.| Method Detail |
|---|
public final void setVolume(double volume)
Note: VolumeChangeListeners are not notified by this
method.
volume - value between 0 (silent) and 1 (the maximum).
Any value outside the range will be ignored.public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandlerprotected void initWidget(com.google.gwt.user.client.ui.Widget widget)
initWidget in class com.google.gwt.user.client.ui.Compositepublic com.google.gwt.event.shared.HandlerRegistration addVolumeChangeHandler(VolumeChangeHandler handler)
addVolumeChangeHandler in interface HasVolumeChangeHandlershandler - the handler
VolumeChangeHandlerpublic void setPopupStyleName(String styleName)
styleName - CSS style class name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||