
public class ApplicationPresenter extends Presenter<ApplicationPresenter.MyView,ApplicationPresenter.MyProxy> implements ChangeActionBarEvent.ChangeActionBarHandler, ActionBarVisibilityEvent.ActionBarVisibilityHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
ApplicationPresenter.MyProxy |
static interface |
ApplicationPresenter.MyView |
Presenter.RevealType| Modifier and Type | Field and Description |
|---|---|
static Object |
SLOT_HEADER_CONTENT |
static GwtEvent.Type<RevealContentHandler<?>> |
SLOT_MAIN_CONTENT |
static Object |
SLOT_MESSAGES_CONTENT |
| Modifier and Type | Method and Description |
|---|---|
void |
onActionBarVisible(ActionBarVisibilityEvent event) |
protected void |
onBind()
Lifecycle method called when binding the object.
|
void |
onChangeActionBar(ChangeActionBarEvent event) |
protected void |
revealInParent()
Requests that the presenter reveal itself in its parent presenter.
|
bind, forceReveal, getProxy, getRevealType, getSlot, prepareFromRequest, setRevealType, setSlot, unbind, useManualRevealaddHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, fireEvent, getEventBus, getView, getWidget, isVisible, onHide, onReset, onReveal, removeFromPopupSlot, removeFromSlot, setInSlot, setInSlotisBound, onUnbind, registerHandlerpublic static final GwtEvent.Type<RevealContentHandler<?>> SLOT_MAIN_CONTENT
public static final Object SLOT_MESSAGES_CONTENT
public static final Object SLOT_HEADER_CONTENT
public void onActionBarVisible(ActionBarVisibilityEvent event)
onActionBarVisible in interface ActionBarVisibilityEvent.ActionBarVisibilityHandlerpublic void onChangeActionBar(ChangeActionBarEvent event)
onChangeActionBar in interface ChangeActionBarEvent.ChangeActionBarHandlerprotected void revealInParent()
PresenterRevealContentEvent,
a RevealRootContentEvent
or a RevealRootLayoutContentEvent.revealInParent in class Presenter<ApplicationPresenter.MyView,ApplicationPresenter.MyProxy>protected 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.