T - The type of the return value, see AsyncCallback.public class ManualRevealCallback<T> extends Object implements AsyncCallback<T>
AsyncCallback can be used when fetching data
from the server within Presenter.prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest) for
a presenter that uses manual reveal (see Presenter.useManualReveal().
Use create(Presenter, AsyncCallback) to attach that callback to your own.
For more complex scenarios you can use ProxyPlace.manualReveal(Presenter).| Constructor and Description |
|---|
ManualRevealCallback(Presenter<?,? extends ProxyPlace<?>> presenter)
Creates an
ManualRevealCallback that is not attached to another AsyncCallback. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ManualRevealCallback<T> |
create(Presenter<?,? extends ProxyPlace<?>> presenter,
AsyncCallback<T> callback)
Creates an
ManualRevealCallback that is attached to another AsyncCallback. |
void |
onFailure(Throwable caught) |
void |
onSuccess(T result) |
public ManualRevealCallback(Presenter<?,? extends ProxyPlace<?>> presenter)
ManualRevealCallback that is not attached to another AsyncCallback.presenter - The presenter that will be revealed upon successful completion of this callback.ManualRevealCallback(Presenter, AsyncCallback)public static <T> ManualRevealCallback<T> create(Presenter<?,? extends ProxyPlace<?>> presenter, AsyncCallback<T> callback)
ManualRevealCallback that is attached to another AsyncCallback.presenter - The presenter that will be revealed upon successful completion of this callback.ManualRevealCallback(Presenter, AsyncCallback)public void onFailure(Throwable caught)
onFailure in interface AsyncCallback<T>public void onSuccess(T result)
onSuccess in interface AsyncCallback<T>Copyright © 2010–2014 Arcbees. All rights reserved.