com.bramosystems.oss.player.core.event.client
Class LoadingProgressEvent
java.lang.Object
com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>
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 classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
Constructor Summary |
protected |
LoadingProgressEvent(double progress)
Constructs a new LoadingProgressEvent object |
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 |
TYPE
public static final com.google.gwt.event.shared.GwtEvent.Type<LoadingProgressHandler> TYPE
LoadingProgressEvent
protected LoadingProgressEvent(double progress)
- Constructs a new LoadingProgressEvent object
- Parameters:
progress
- the new loading progress
fire
public static void fire(HasMediaStateHandlers source,
double progress)
- Fires loading progress event on all registered handlers
- Parameters:
source
- the source of the eventprogress
- 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.