
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, setInSlotbind, isBound, onUnbind, registerHandler, unbindpublic void logout()
logout in interface HeaderUiHandlerspublic void onLogin(UserLoginEvent event)
onLogin in interface UserLoginEvent.UserLoginHandlerpublic void onActionBarVisible(ActionBarVisibilityEvent event)
onActionBarVisible in interface ActionBarVisibilityEvent.ActionBarVisibilityHandlerpublic void onChangeActionBar(ChangeActionBarEvent event)
onChangeActionBar in interface ChangeActionBarEvent.ChangeActionBarHandlerpublic void onAction(ChangeActionBarEvent.ActionType actionType)
onAction in interface HeaderUiHandlerspublic void onGoBack()
onGoBack in interface HeaderUiHandlersprotected 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 HandlerContainerImplCopyright © 2010-2014 ArcBees. All Rights Reserved.