Verifies if this presenter can be revealed automatically or if it is meant to be
revealed manually.
Normally, the user wants to reveal a presenter manually when it cannot be used
until some data is received from the server. For example, a form
to edit client details is unusable until all the data for this user has been
received. Fetching this data should be done in the
#prepareFromRequest(PlaceRequest)method.
In order to use manual reveal, override this method to return
true.
Then, in your
#prepareFromRequest, you can either:
- Fetch the data using a
com.gwtplatform.mvp.client.proxy.ManualRevealCallback,
which will automatically reveal the presenter upon success.
- Fetch the data by any other mean and call
com.gwtplatform.mvp.client.proxy.ProxyPlace#manualReveal(Presenter) when
your data is available. In this case you also have to call
com.gwtplatform.mvp.client.proxy.ProxyPlace#manualRevealFailed()if loading fails, otherwise your application will become unusable.
The default implementation uses automatic reveal, and therefore returns
false.