public abstract class AbstractMobilePresenter extends Object implements IMobilePresenter
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractMobilePresenter.IBackCallback
Callback, when the back button is clicked.
|
| Constructor and Description |
|---|
AbstractMobilePresenter(com.google.gwt.event.shared.EventBus eventBus)
Dispatcher mit evnent Bus.
|
AbstractMobilePresenter(IDispatcher disp)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gwt.event.dom.client.ClickHandler |
addBackButtonNavigationHandlers(IPageWithHeader myView,
AbstractMobilePresenter.IBackCallback callback)
Created and adds a click handler for the back button.
|
protected com.google.gwt.event.dom.client.ClickHandler |
addBackButtonNavigationHandlers(IPageWithHeader myView,
IEvent eventToFire)
Created and adds a click handler for the back button.
|
protected com.google.gwt.event.dom.client.ClickHandler |
addBackButtonNavigationHandlers(IPageWithHeader myView,
IEvent eventToFire,
boolean showSpinner)
Created and adds a click handler for the back button.
|
protected void |
beforeBack()
Will be called, before back action is executed.
|
com.google.gwt.event.dom.client.ClickHandler |
createLoadingIndicatorClickHandler(com.google.gwt.event.dom.client.ClickHandler toWrap)
Will create a click hanlder, which will automatically crerate a loading indicator when clicked (if loadimng indicator is globally enabled)
|
void |
fireMobileEvent(MobileEvent eventToFire,
IPage originatorPage) |
IDispatcher |
getDispatcher()
Will return the dispatcher.
|
IEvent |
getLeaveToEvent() |
static Direction |
getNextTransitionDirection()
Liefert die richtung der naechsten Transition.
|
protected static boolean |
getTransitionIsRunning()
Returns {code}true{code} if a transition is currently running (in this case, goToPage() has no effect).
|
void |
gotoPage(IPage originator,
IPageWithoutHeader targetView)
Generic method to switch to another page.
|
void |
gotoPage(IPage originator,
IPageWithoutHeader targetView,
boolean automaticTransition,
Transition transition,
Direction transitionDirection)
Generic method to switch to another page.
|
void |
gotoPageWithRootAsContentArea(IPageWithoutHeader targetView)
Generische trasitionsmethode fuer den Seitenwechsel.
|
static boolean |
isAllTransitionsDisabled()
Return value of transitionsFromMainViewDisabled (see
setAllTransitionsDisabled(boolean) ). |
boolean |
isOwningViewVisible()
Liefert rue wenn der vom Presenter kontollierte View sichtbar ist.
|
boolean |
isScreenActive()
Returns true if this screen is active.
|
boolean |
isTransitionsFromMainViewDisabled()
Return value of transitionsFromMainViewDisabled (see {@link #setTransitionsFromMainViewDisabled(boolean)).
|
LeavePageResponse |
leavePageRequest()
Will return the decission to leave this Page.
|
static void |
setAllTransitionsDisabled(boolean allTransitionsDisabled)
If set to {code}true{code}, no transition effect is performed when page switch originates from ANY view
(i.e., in {@link #gotoPage(IPage, IPageWithoutHeader)
|
void |
setLeaveToEvent(IEvent leaveToEvent) |
void |
setRootContentArea(IPage newRootContentArea,
IPageWithoutHeader startupContent)
Generische trasitionsmethode fuer den Seitenwechsel.
|
static void |
setShowSpinnerBetweenTransitions(boolean showSpinnerBetweenTransitions)
Enabled or disabled the spinner between transitions.
|
void |
setTransitionsFromMainViewDisabled(boolean transitionsFromMainViewDisabled)
If set to {code}true{code}, no transition effect is performed when page switch originates from main view (i.e., in #gotoPage(IPage, IPageWithoutHeader) the
originator is an instance of {@link IMainView}).
|
public AbstractMobilePresenter(IDispatcher disp)
disp - der dispatcher.public AbstractMobilePresenter(com.google.gwt.event.shared.EventBus eventBus)
eventBus - der event buspublic static Direction getNextTransitionDirection()
public static void setShowSpinnerBetweenTransitions(boolean showSpinnerBetweenTransitions)
showSpinnerBetweenTransitions - true if the spinner should be shown between transitions.public static boolean isAllTransitionsDisabled()
setAllTransitionsDisabled(boolean) ).public static void setAllTransitionsDisabled(boolean allTransitionsDisabled)
allTransitionsDisabled - setting of allTransitionsDisabledpublic IDispatcher getDispatcher()
IMobilePresentergetDispatcher in interface IMobilePresenterpublic LeavePageResponse leavePageRequest()
IMobilePresenterleavePageRequest in interface IMobilePresenterpublic boolean isOwningViewVisible()
isOwningViewVisible in interface IMobilePresenterpublic void gotoPage(IPage originator, IPageWithoutHeader targetView)
gotoPage in interface IMobilePresenteroriginator - the view which the event to switch the page originated fromtargetView - view to switch to (usually the view of the current presenter)public void gotoPage(IPage originator, IPageWithoutHeader targetView, boolean automaticTransition, Transition transition, Direction transitionDirection)
gotoPage in interface IMobilePresenteroriginator - the view which the event to switch the page originated fromtargetView - view to switch to (usually the view of the current presenter)automaticTransition - whether the transition effect should be determined automatically
(parameters transition, transitionDirection are ignored)transition - transition effect ({code}null{code} for no transition effect)transitionDirection - transition directionpublic void gotoPageWithRootAsContentArea(IPageWithoutHeader targetView)
gotoPageWithRootAsContentArea in interface IMobilePresentertargetView - die view des aktuellen Presenters (Ziel) - als Content area des Ziels wird Root gesetzt.public void setRootContentArea(IPage newRootContentArea, IPageWithoutHeader startupContent)
newRootContentArea - new root content area. All new sceens will be places as chidlern of this area.startupContent - view which should be deplayed as content of the new root panelpublic void fireMobileEvent(MobileEvent eventToFire, IPage originatorPage)
public com.google.gwt.event.dom.client.ClickHandler createLoadingIndicatorClickHandler(com.google.gwt.event.dom.client.ClickHandler toWrap)
toWrap - the callback to wrappublic boolean isScreenActive()
public boolean isTransitionsFromMainViewDisabled()
public void setTransitionsFromMainViewDisabled(boolean transitionsFromMainViewDisabled)
transitionsFromMainViewDisabled - setting of transitionsFromMainViewDisabledpublic IEvent getLeaveToEvent()
public void setLeaveToEvent(IEvent leaveToEvent)
protected com.google.gwt.event.dom.client.ClickHandler addBackButtonNavigationHandlers(IPageWithHeader myView, IEvent eventToFire)
myView - currently displayed view.eventToFire - the event to fire after the back button will be clicked.protected com.google.gwt.event.dom.client.ClickHandler addBackButtonNavigationHandlers(IPageWithHeader myView, IEvent eventToFire, boolean showSpinner)
myView - currently displayed view.eventToFire - the event to fire after the back button will be clicked.showSpinner - Flag if spinner should be shownprotected com.google.gwt.event.dom.client.ClickHandler addBackButtonNavigationHandlers(IPageWithHeader myView, AbstractMobilePresenter.IBackCallback callback)
myView - currently displayed view.callback - the callback executed after the back button will be clicked.protected void beforeBack()
protected static boolean getTransitionIsRunning()
Copyright © 2011–2015 SWM. All rights reserved.