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 interfacestatic enumNested 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 newLoadingEventLoadingEvent(com.google.gwt.event.shared.HasHandlers source, LoadingEvent.LoadingState loadingState, Object loadingObject, String errorMessage) Create a newLoadingEvent -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(LoadingEvent.Handler handler) static <T> voidfire(com.google.gwt.event.shared.HasHandlers source, LoadingEvent.LoadingState loadingState, Object loadingObject) Fires a newLoadingEventstatic <T> voidfire(com.google.gwt.event.shared.HasHandlers source, LoadingEvent.LoadingState loadingState, Object loadingObject, String errorMessage) Fires a newLoadingEventcom.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
getSourceMethods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, isLive, kill, reviveMethods 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:
dispatchin classcom.google.gwt.event.shared.GwtEvent<LoadingEvent.Handler>
-
getAssociatedType
- Specified by:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<LoadingEvent.Handler>
-
getLoadingObject()instead