GWT 2.1.0

com.google.gwt.requestfactory.shared
Class RequestEvent

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<RequestEvent.Handler>
      extended by com.google.gwt.requestfactory.shared.RequestEvent

public class RequestEvent
extends GwtEvent<RequestEvent.Handler>

An event posted whenever an RPC request is sent or its response is received.


Nested Class Summary
static interface RequestEvent.Handler
          Implemented by handlers of this type of event.
static class RequestEvent.State
          The request state.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
RequestEvent(RequestEvent.State state, Response response)
           
 
Method Summary
protected  void dispatch(RequestEvent.Handler handler)
          Should only be called by HandlerManager.
 GwtEvent.Type<RequestEvent.Handler> getAssociatedType()
          Returns the type used to register this event.
 Response getResponse()
           
 RequestEvent.State getState()
           
static HandlerRegistration register(EventBus eventBus, RequestEvent.Handler handler)
           
 
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
 

Constructor Detail

RequestEvent

public RequestEvent(RequestEvent.State state,
                    Response response)
Method Detail

register

public static HandlerRegistration register(EventBus eventBus,
                                           RequestEvent.Handler handler)

getAssociatedType

public GwtEvent.Type<RequestEvent.Handler> getAssociatedType()
Description copied from class: GwtEvent
Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.

Specified by:
getAssociatedType in class GwtEvent<RequestEvent.Handler>
Returns:
the type

getResponse

public Response getResponse()

getState

public RequestEvent.State getState()

dispatch

protected void dispatch(RequestEvent.Handler handler)
Description copied from class: GwtEvent
Should only be called by HandlerManager. In other words, do not use or call.

Specified by:
dispatch in class GwtEvent<RequestEvent.Handler>
Parameters:
handler - handler

GWT 2.1.0