public class HeaderPresenter extends PresenterWidget<HeaderPresenter.MyView> implements HeaderUiHandlers, UserLoginEvent.UserLoginHandler, ChangeActionBarEvent.ChangeActionBarHandler, ActionBarVisibilityEvent.ActionBarVisibilityHandler
Modifier and Type | Class and Description |
---|---|
static interface |
HeaderPresenter.MyView |
Modifier and Type | Method and Description |
---|---|
void |
logout() |
void |
onAction(ChangeActionBarEvent.ActionType actionType) |
void |
onActionBarVisible(ActionBarVisibilityEvent event) |
protected void |
onBind()
Lifecycle method called when binding the object.
|
void |
onChangeActionBar(ChangeActionBarEvent event) |
void |
onGoBack() |
void |
onLogin(UserLoginEvent event) |
addHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, fireEvent, getEventBus, getView, getWidget, isVisible, onHide, onReset, onReveal, removeFromPopupSlot, removeFromSlot, setInSlot, setInSlot
bind, isBound, onUnbind, registerHandler, unbind
public void logout()
logout
in interface HeaderUiHandlers
public void onLogin(UserLoginEvent event)
onLogin
in interface UserLoginEvent.UserLoginHandler
public void onActionBarVisible(ActionBarVisibilityEvent event)
onActionBarVisible
in interface ActionBarVisibilityEvent.ActionBarVisibilityHandler
public void onChangeActionBar(ChangeActionBarEvent event)
onChangeActionBar
in interface ChangeActionBarEvent.ChangeActionBarHandler
public void onAction(ChangeActionBarEvent.ActionType actionType)
onAction
in interface HeaderUiHandlers
public void onGoBack()
onGoBack
in interface HeaderUiHandlers
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
Copyright © 2010-2014 ArcBees. All Rights Reserved.