public abstract class SimplePage extends SWMMobileWidgetBase implements IPage
Page describes the current screen content. Currently swm-mobile applications are based on a Page concept,
means a SimplePage contains the whole UI content of a screen.| Constructor and Description |
|---|
SimplePage() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.Composite |
asComposite()
Returns the page itself as a
Composite |
void |
beforeEnter() |
void |
beforeLeaving() |
abstract String |
getName()
Returns the name of the page.
|
Transition |
getTransition()
Returns the current transition.
|
com.google.gwt.user.client.ui.Widget |
getWidget() |
void |
goTo(IPage toPage,
Direction direction) |
void |
goTo(IPage toPage,
Direction direction,
ITransitionCompletedCallback callback) |
void |
goTo(IPage toPage,
Transition transition,
Direction direction,
ITransitionCompletedCallback callback)
Starts a transition for one page to another page.
|
protected void |
initWidget(com.google.gwt.user.client.ui.Widget widget) |
static void |
load(IPage mainPage)
Will load the page
IPage. |
static void |
load(SimplePage mainPage)
Will load the page
SimplePage. |
void |
onTransitionEnd()
When a transition ends.
|
static void |
setDefaultTransition(Transition transition)
nabeld to overwrite the default tration (see goto(..))
|
void |
setParent(com.google.gwt.user.client.ui.HasWidgets p)
Defines the parent object of a page (by default this is the root object).
|
void |
setTransitionEndCallback(ITransitionCompletedCallback callback) |
onInitialLoad, onLoad, setSecondaryStyleclaimElement, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic void setParent(com.google.gwt.user.client.ui.HasWidgets p)
protected void initWidget(com.google.gwt.user.client.ui.Widget widget)
initWidget in class com.google.gwt.user.client.ui.Compositepublic abstract String getName()
public void onTransitionEnd()
SWMMobileWidgetBaseonTransitionEnd in interface IsSWMMobileWidgetonTransitionEnd in class SWMMobileWidgetBasepublic void setTransitionEndCallback(ITransitionCompletedCallback callback)
setTransitionEndCallback in interface IPagepublic void goTo(IPage toPage, Direction direction, ITransitionCompletedCallback callback)
public void goTo(IPage toPage, Transition transition, Direction direction, ITransitionCompletedCallback callback)
toPage - the target pagetransition - the transitiondirection - the directioncallback - the callback when copleted.public Transition getTransition()
public static void load(IPage mainPage)
IPage.mainPage - the main pagepublic static void load(SimplePage mainPage)
SimplePage.mainPage - the main pagepublic static void setDefaultTransition(Transition transition)
transition - the default tratione to set.public com.google.gwt.user.client.ui.Widget getWidget()
public com.google.gwt.user.client.ui.Composite asComposite()
CompositeasComposite in interface IPageCompositepublic void beforeEnter()
beforeEnter in interface IPagepublic void beforeLeaving()
beforeLeaving in interface IPageCopyright © 2011–2015 SWM. All rights reserved.