GWTP Dispatch client 0.6-redhat-2

com.gwtplatform.dispatch.client
Class DelegatingDispatchRequest

java.lang.Object
  extended by com.gwtplatform.dispatch.client.DelegatingDispatchRequest
All Implemented Interfaces:
DispatchRequest

public class DelegatingDispatchRequest
extends Object
implements DispatchRequest

An implementation of DispatchRequest that is used in conjunction with ClientActionHandlers.

As the ClientActionHandler may be provided asynchronously, the ClientActionHandlerDispatchRequest will initially not contain an DispatchRequest. Once the ClientActionHandler is executed, this be populated with a DelegatingDispatchRequest by calling setDelegate(DispatchRequest).

Author:
Brendan Doherty

Constructor Summary
DelegatingDispatchRequest()
           
 
Method Summary
 void cancel()
           
 boolean isPending()
           
 void setDelegate(DispatchRequest delegate)
          Populates the DelegatingDispatchRequest object with a DispatchRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingDispatchRequest

public DelegatingDispatchRequest()
Method Detail

setDelegate

public void setDelegate(DispatchRequest delegate)
Populates the DelegatingDispatchRequest object with a DispatchRequest.

If the code that requested the command to be executed has already chosen to cancel the DispatchRequest, the DispatchRequest that has been passed will be immediately cancelled.

Parameters:
delegate - The DispatchRequest object.

cancel

public void cancel()
Specified by:
cancel in interface DispatchRequest

isPending

public boolean isPending()
Specified by:
isPending in interface DispatchRequest

GWTP Dispatch client 0.6-redhat-2

Copyright © 2010-2012 ArcBees. All Rights Reserved.