public class LoadingProgressEvent extends com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>
Modifier and Type | Field and Description |
---|---|
static com.google.gwt.event.shared.GwtEvent.Type<LoadingProgressHandler> |
TYPE |
Modifier | Constructor and Description |
---|---|
protected |
LoadingProgressEvent(double progress)
Constructs a new LoadingProgressEvent object
|
Modifier and Type | Method and Description |
---|---|
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
|
assertLive, getSource, isLive, kill, revive
public static final com.google.gwt.event.shared.GwtEvent.Type<LoadingProgressHandler> TYPE
protected LoadingProgressEvent(double progress)
progress
- the new loading progresspublic static void fire(HasMediaStateHandlers source, double progress)
source
- the source of the eventprogress
- the new loading progresspublic com.google.gwt.event.shared.GwtEvent.Type<LoadingProgressHandler> getAssociatedType()
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>
protected void dispatch(LoadingProgressHandler handler)
dispatch
in class com.google.gwt.event.shared.GwtEvent<LoadingProgressHandler>
public double getProgress()
The loading progress ranges between 0
and 1
. A value of
1
indicates that media loading is complete
Copyright © 2009-2013. All Rights Reserved.