public class RatingDetailPresenter extends Presenter<RatingDetailPresenter.MyView,RatingDetailPresenter.MyProxy> implements RatingDetailUiHandlers, ActionBarEvent.ActionBarHandler, GoBackEvent.GoBackHandler
Modifier and Type | Class and Description |
---|---|
static interface |
RatingDetailPresenter.MyProxy |
static interface |
RatingDetailPresenter.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(RatingDto ratingDto) |
protected void |
revealInParent()
Requests that the presenter reveal itself in its parent presenter.
|
bind, forceReveal, getProxy, getRevealType, getSlot, prepareFromRequest, setRevealType, setSlot, unbind, useManualReveal
addHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, fireEvent, getEventBus, getView, getWidget, isVisible, onHide, onReset, removeFromPopupSlot, removeFromSlot, setInSlot, setInSlot
isBound, onUnbind, registerHandler
public void onGoBack(GoBackEvent event)
onGoBack
in interface GoBackEvent.GoBackHandler
public void onActionEvent(ActionBarEvent event)
onActionEvent
in interface ActionBarEvent.ActionBarHandler
public void onSave(RatingDto ratingDto)
onSave
in interface RatingDetailUiHandlers
protected void onBind()
HandlerContainerImpl
HandlerContainerImpl.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 HandlerContainerImpl
protected void onReveal()
PresenterWidget
PresenterWidget.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<RatingDetailPresenter.MyView>
protected void revealInParent()
Presenter
RevealContentEvent
,
a RevealRootContentEvent
or a RevealRootLayoutContentEvent
.revealInParent
in class Presenter<RatingDetailPresenter.MyView,RatingDetailPresenter.MyProxy>
Copyright © 2010-2014 ArcBees. All Rights Reserved.