com.bramosystems.oss.player.core.event.client
Class VolumeChangeEvent

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<VolumeChangeHandler>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Field Summary
static com.google.gwt.event.shared.GwtEvent.Type<VolumeChangeHandler> TYPE
           
 
Constructor Summary
protected VolumeChangeEvent(double volume)
          Creates a new volume change event
 
Method Summary
protected  void dispatch(VolumeChangeHandler handler)
           
static void fire(HasVolumeChangeHandlers source, double volume)
          Fires volume change event on all registered handlers
 com.google.gwt.event.shared.GwtEvent.Type<VolumeChangeHandler> getAssociatedType()
           
 double getNewVolume()
          Retrieves the new volume.
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static com.google.gwt.event.shared.GwtEvent.Type<VolumeChangeHandler> TYPE
Constructor Detail

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
Method Detail

fire

public static void fire(HasVolumeChangeHandlers source,
                        double volume)
Fires volume change event on all registered handlers

Parameters:
source - the source of the handlers
volume - 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.