com.gwtplatform.dispatch.client
Class DelegatingDispatchRequest
java.lang.Object
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
ClientActionHandler
s.
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingDispatchRequest
public DelegatingDispatchRequest()
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
Copyright © 2010-2012 ArcBees. All Rights Reserved.