com.bramosystems.oss.player.core.event.client
Class VolumeChangeEvent
java.lang.Object
com.google.gwt.event.shared.GwtEvent<VolumeChangeHandler>
com.bramosystems.oss.player.core.event.client.VolumeChangeEvent
public class VolumeChangeEvent
- extends com.google.gwt.event.shared.GwtEvent<VolumeChangeHandler>
The volume change event fired by VolumeControl
widgets when the
volumes' slider has changed.
- Author:
- Sikirulai Braheem
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
Constructor Summary |
protected |
VolumeChangeEvent(double volume)
Creates a new volume change event |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
assertLive, getSource, isLive, kill, revive, toDebugString, toString |
TYPE
public static com.google.gwt.event.shared.GwtEvent.Type<VolumeChangeHandler> TYPE
VolumeChangeEvent
protected VolumeChangeEvent(double volume)
- Creates a new volume change event
- Parameters:
volume
- the new volume in the range 0
silence to 1
maximum volume
fire
public static void fire(HasVolumeChangeHandlers source,
double volume)
- Fires volume change event on all registered handlers
- Parameters:
source
- the source of the handlersvolume
- the new volume
getNewVolume
public double getNewVolume()
- Retrieves the new volume. The volume ranges between
0
silence and
1
maximum volume
- Returns:
- the volume
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<VolumeChangeHandler> getAssociatedType()
- Specified by:
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<VolumeChangeHandler>
dispatch
protected void dispatch(VolumeChangeHandler handler)
- Specified by:
dispatch
in class com.google.gwt.event.shared.GwtEvent<VolumeChangeHandler>
Copyright © 2009-2011. All Rights Reserved.