Class LoadingEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<LoadingEvent.Handler>
com.google.gwt.event.shared.GwtEvent<LoadingEvent.Handler>
com.levigo.jadice.web.client.event.JadiceEvent<LoadingEvent.Handler>
com.levigo.jadice.web.client.event.LoadingEvent
An Event fired to indicate that something (tiles/document) is currently loading or the loading
has finished.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.event.JadiceEvent
JadiceEvent.Type<H>
-
Constructor Summary
ConstructorsConstructorDescriptionLoadingEvent
(com.google.gwt.event.shared.HasHandlers source, LoadingEvent.LoadingState loadingState, Object loadingObject) Create a newLoadingEvent
LoadingEvent
(com.google.gwt.event.shared.HasHandlers source, LoadingEvent.LoadingState loadingState, Object loadingObject, String errorMessage) Create a newLoadingEvent
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(LoadingEvent.Handler handler) static <T> void
fire
(com.google.gwt.event.shared.HasHandlers source, LoadingEvent.LoadingState loadingState, Object loadingObject) Fires a newLoadingEvent
static <T> void
fire
(com.google.gwt.event.shared.HasHandlers source, LoadingEvent.LoadingState loadingState, Object loadingObject, String errorMessage) Fires a newLoadingEvent
com.google.gwt.event.shared.GwtEvent.Type
<LoadingEvent.Handler> If the loading failed due to an error this will return an error message or an HTTP status code.getTag()
Deprecated.static JadiceEvent.Type
<LoadingEvent.Handler> getType()
Methods inherited from class com.levigo.jadice.web.client.event.JadiceEvent
getSource
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
Method Details
-
getType
-
getLoadingState
-
getLoadingObject
-
getErrorMessage
If the loading failed due to an error this will return an error message or an HTTP status code.In some cases the message can differ from the reason why the loading failed. This happens when loading an image via an image tag. We don't get information about the failure form the error event of the onerror-function of the image tag so we return the most likely reason by returning the fetch response.
- Returns:
- an error message
-
getTag
Deprecated.usegetLoadingObject()
instead- Returns:
- the loading object as a string or "tile" in case of tiles
-
dispatch
- Specified by:
dispatch
in classcom.google.gwt.event.shared.GwtEvent<LoadingEvent.Handler>
-
getAssociatedType
- Specified by:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<LoadingEvent.Handler>
-
getLoadingObject()
instead