public class NavigationTabPresenter extends PresenterWidget<NavigationTabPresenter.MyView> implements NavigationTabEvent.NavigationTabHandler, NavigationUiHandlers
Modifier and Type | Class and Description |
---|---|
static interface |
NavigationTabPresenter.MyView |
Modifier and Type | Method and Description |
---|---|
protected void |
onBind()
Lifecycle method called when binding the object.
|
void |
onCloseTab(NavigationTab element) |
void |
onRevealTab(NavigationTab element) |
void |
onTabSelected(int index) |
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 onCloseTab(NavigationTab element)
onCloseTab
in interface NavigationTabEvent.NavigationTabHandler
public void onRevealTab(NavigationTab element)
onRevealTab
in interface NavigationTabEvent.NavigationTabHandler
public void onTabSelected(int index)
onTabSelected
in interface NavigationUiHandlers
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.