
public class ManufacturerDetailPresenter extends Presenter<ManufacturerDetailPresenter.MyView,ManufacturerDetailPresenter.MyProxy> implements GoBackEvent.GoBackHandler, ActionBarEvent.ActionBarHandler, ManufacturerDetailUiHandlers
| Modifier and Type | Class and Description |
|---|---|
static interface |
ManufacturerDetailPresenter.MyProxy |
static interface |
ManufacturerDetailPresenter.MyView |
Presenter.RevealType| Modifier and Type | Method and Description |
|---|---|
void |
onActionEvent(ActionBarEvent event) |
protected void |
onBind()
Lifecycle method called when binding the object.
|
void |
onGoBack(GoBackEvent event) |
protected void |
onReveal()
Lifecycle method called whenever this presenter is about to be
revealed.
|
void |
onSave(ManufacturerDto manufacturerDto) |
void |
prepareFromRequest(PlaceRequest request)
Prepare the state of the presenter given the information contained in
the
PlaceRequest. |
protected void |
revealInParent()
Requests that the presenter reveal itself in its parent presenter.
|
bind, forceReveal, getProxy, getRevealType, getSlot, setRevealType, setSlot, unbind, useManualRevealaddHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, fireEvent, getEventBus, getView, getWidget, isVisible, onHide, onReset, removeFromPopupSlot, removeFromSlot, setInSlot, setInSlotisBound, onUnbind, registerHandlerpublic void prepareFromRequest(PlaceRequest request)
PresenterPlaceRequest. This method is called when the
PlaceManager navigates
to this Presenter. You should override the method to extract any
parameters you need from the request. Make sure you call your parent's
Presenter.prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest) method.
If your presenter needs to fetch some information from the server while
preparing itself, consider using manual reveal. See Presenter.useManualReveal().
If your presenter does not handle any parameter and does not want to fetch
extra information, then there is no need to override this method.prepareFromRequest in class Presenter<ManufacturerDetailPresenter.MyView,ManufacturerDetailPresenter.MyProxy>request - The PlaceRequest.public void onGoBack(GoBackEvent event)
onGoBack in interface GoBackEvent.GoBackHandlerpublic void onActionEvent(ActionBarEvent event)
onActionEvent in interface ActionBarEvent.ActionBarHandlerpublic void onSave(ManufacturerDto manufacturerDto)
onSave in interface ManufacturerDetailUiHandlersprotected void onBind()
HandlerContainerImplHandlerContainerImpl.onBind(). Also, do
not call directly, call HandlerContainerImpl.bind() instead.
Any event handler should be
initialised here rather than in the constructor. Also, it is good practice to
perform any costly initialisation here.
Handlers registered by calling
HandlerContainerImpl.registerHandler(HandlerRegistration) will be removed
when unbinding. Any other initialisation that takes place here (or as a
side-effect of what is done here) should be taken down in HandlerContainerImpl.onUnbind().
This method will never be invoked more then once, or if it is, the second
time will necessarily be preceded by an invocation of HandlerContainerImpl.onUnbind().onBind in class HandlerContainerImplprotected void onReveal()
PresenterWidgetPresenterWidget.onReveal() if
you override. Also, do not call directly, see PresenterWidget
for more details on lifecycle methods.
You should override this method to perform any action or initialisation
that needs to be done when the presenter is revealed. Any initialisation
you perform here should be taken down in PresenterWidget.onHide().
Information that needs to be updated whenever the user navigates should
be refreshed in PresenterWidget.onReset().
In a presenter hierarchy, this method is called top-down: first on the
parent presenters, then on the children.onReveal in class PresenterWidget<ManufacturerDetailPresenter.MyView>protected void revealInParent()
PresenterRevealContentEvent,
a RevealRootContentEvent
or a RevealRootLayoutContentEvent.revealInParent in class Presenter<ManufacturerDetailPresenter.MyView,ManufacturerDetailPresenter.MyProxy>Copyright © 2010-2014 ArcBees. All Rights Reserved.