P
- The type of the Presenter
associated with this proxy.public interface ProxyPlace<P extends Presenter<?,?>> extends Proxy<P>, Place
Modifier and Type | Method and Description |
---|---|
void |
manualReveal(Presenter<?,?> presenter)
Manually reveals a presenter.
|
void |
manualRevealFailed()
Cancels manually revealing a presenter.
|
getEventBus, getPresenter
getRawPresenter
fireEvent
canReveal, equals, getNameToken, hashCode, matchesRequest, toString
void manualReveal(Presenter<?,?> presenter)
Presenter.useManualReveal()
. This method should be
called following one or more asynchronous server calls in
Presenter.prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest)
.
You should manually reveal your presenter exactly once, when all the data needed to use it is available.
If you failed to fetch the data or cannot reveal the presenter you must call
manualRevealFailed()
otherwise navigation will be blocked and your application
will appear to be frozen.
Also consider using ManualRevealCallback
, which will automatically call
manualReveal(Presenter)
upon success and manualRevealFailed()
upon
failure.presenter
- The presenter that will be delayed revealed.Presenter.useManualReveal()
,
manualRevealFailed()
void manualRevealFailed()
Presenter.useManualReveal()
. For more details see
manualReveal(Presenter)
.manualReveal(Presenter)
Copyright © 2010-2014 ArcBees. All Rights Reserved.