public class RootPresenter extends PresenterWidget<RootPresenter.RootView> implements ResetPresentersHandler, RevealRootContentHandler, RevealRootLayoutContentHandler, RevealRootPopupContentHandler, LockInteractionHandler
RootPanel
and RootLayoutPanel
.
Fire a RevealRootContentEvent
or RevealRootLayoutContentEvent
to set your presenter at the top level. The choice depends on whether your
presenter works as a Panel
or as a
LayoutPanel
.Modifier and Type | Class and Description |
---|---|
static class |
RootPresenter.RootView
RootPresenter 's view. |
Constructor and Description |
---|
RootPresenter(EventBus eventBus,
RootPresenter.RootView view)
Creates a proxy class for a presenter that can contain tabs.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onBind()
Lifecycle method called when binding the object.
|
void |
onLockInteraction(LockInteractionEvent lockInteractionEvent) |
void |
onResetPresenters(ResetPresentersEvent resetPresentersEvent) |
void |
onRevealRootContent(RevealRootContentEvent revealContentEvent)
Called whenever a presenter wants to sets itself as the root content of the
application, that is, within GWT's
RootPanel . |
void |
onRevealRootLayoutContent(RevealRootLayoutContentEvent revealContentEvent)
Called whenever a presenter wants to sets itself as the root layout content
of the application, that is, within GWT's
RootLayoutPanel . |
void |
onRevealRootPopupContent(RevealRootPopupContentEvent revealContentEvent)
Called whenever a presenter wants to sets itself as a popup attached to
the root of the application.
|
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
@Inject public RootPresenter(EventBus eventBus, RootPresenter.RootView view)
eventBus
- The event bus.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
public void onResetPresenters(ResetPresentersEvent resetPresentersEvent)
onResetPresenters
in interface ResetPresentersHandler
public void onRevealRootContent(RevealRootContentEvent revealContentEvent)
RevealRootContentHandler
RootPanel
.onRevealRootContent
in interface RevealRootContentHandler
revealContentEvent
- The event containing the presenter that wants to bet set as
root content.public void onRevealRootLayoutContent(RevealRootLayoutContentEvent revealContentEvent)
RevealRootLayoutContentHandler
RootLayoutPanel
.onRevealRootLayoutContent
in interface RevealRootLayoutContentHandler
revealContentEvent
- The event containing the presenter that wants to bet set as
root layout content.public void onRevealRootPopupContent(RevealRootPopupContentEvent revealContentEvent)
RevealRootPopupContentHandler
onRevealRootPopupContent
in interface RevealRootPopupContentHandler
revealContentEvent
- The event containing the presenter that wants to bet set as
root popup content.public void onLockInteraction(LockInteractionEvent lockInteractionEvent)
onLockInteraction
in interface LockInteractionHandler
Copyright © 2010-2014 ArcBees. All Rights Reserved.