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

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>
      extended by com.bramosystems.oss.player.core.event.client.LoadingProgressEvent

public class LoadingProgressEvent
extends com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>

The event fired when the loading progress of a media item 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<LoadingProgressHandler> TYPE
           
 
Constructor Summary
protected LoadingProgressEvent(double progress)
          Constructs a new LoadingProgressEvent object
 
Method Summary
protected  void dispatch(LoadingProgressHandler handler)
           
static void fire(HasMediaStateHandlers source, double progress)
          Fires loading progress event on all registered handlers
 com.google.gwt.event.shared.GwtEvent.Type<LoadingProgressHandler> getAssociatedType()
           
 double getProgress()
          Retrieves the new loading progress
 
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 final com.google.gwt.event.shared.GwtEvent.Type<LoadingProgressHandler> TYPE
Constructor Detail

LoadingProgressEvent

protected LoadingProgressEvent(double progress)
Constructs a new LoadingProgressEvent object

Parameters:
progress - the new loading progress
Method Detail

fire

public static void fire(HasMediaStateHandlers source,
                        double progress)
Fires loading progress event on all registered handlers

Parameters:
source - the source of the event
progress - the new loading progress

getAssociatedType

public com.google.gwt.event.shared.GwtEvent.Type<LoadingProgressHandler> getAssociatedType()
Specified by:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>

dispatch

protected void dispatch(LoadingProgressHandler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>

getProgress

public double getProgress()
Retrieves the new loading progress

The loading progress ranges between 0 and 1. A value of 1 indicates that media loading is complete

Returns:
the loading progress.


Copyright © 2009-2011. All Rights Reserved.