public class AppsViewportWidget extends ViewportWidget<AppsTransitionDelegate> implements HasSwipeHandlers
Modifier and Type | Class and Description |
---|---|
static interface |
AppsViewportWidget.Listener
Listener interface for
AppsViewportWidget . |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static String |
APP_INACTIVE_CLASS_NAME |
Constructor and Description |
---|
AppsViewportWidget(AppsViewportWidget.Listener listener) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addSwipeEndHandler(SwipeEndHandler handler)
register for a
SwipeEndHandler |
com.google.gwt.event.shared.HandlerRegistration |
addSwipeMoveHandler(SwipeMoveHandler handler)
register for a
SwipeMoveHandler |
com.google.gwt.event.shared.HandlerRegistration |
addSwipeStartHandler(SwipeStartHandler handler)
register for a
SwipeStartEvent |
com.google.gwt.user.client.ui.Widget |
getCurrentApp()
Get the app that is currently open.
|
com.google.gwt.user.client.Element |
getCurtain() |
void |
goToNextApp() |
void |
goToPreviousApp() |
boolean |
hasPreloader() |
boolean |
isAppClosing() |
boolean |
readyForAppSwipeOrShortcutNavigation()
Checks whether there are enough apps to navigate to next/previous app (> 1), that some app is loaded and displayed and
that no animation is currently in progress.
|
void |
removeChild(com.google.gwt.user.client.ui.Widget w) |
void |
removeChildNoTransition(com.google.gwt.user.client.ui.Widget w) |
void |
removePreloader() |
void |
setCurtainVisible(boolean visible) |
void |
setFullScreen(boolean isFullScreen)
Set the look of the application and the state of the button.
|
void |
showAppPreloader(String appName) |
void |
showChildNoTransition(com.google.gwt.user.client.ui.Widget w)
Default non-transitioning behavior, accessible to transition delegates as a fall back.
|
getTransitionDelegate, getVisibleChild, setTransitionDelegate, showChild
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
forEach, spliterator
public static final String APP_INACTIVE_CLASS_NAME
public AppsViewportWidget(AppsViewportWidget.Listener listener)
public boolean readyForAppSwipeOrShortcutNavigation()
public void setFullScreen(boolean isFullScreen)
public void goToNextApp()
public void goToPreviousApp()
public com.google.gwt.user.client.ui.Widget getCurrentApp()
public com.google.gwt.user.client.Element getCurtain()
public void setCurtainVisible(boolean visible)
public void showChildNoTransition(com.google.gwt.user.client.ui.Widget w)
ViewportWidget
showChildNoTransition
in class ViewportWidget<AppsTransitionDelegate>
public void removeChild(com.google.gwt.user.client.ui.Widget w)
removeChild
in class ViewportWidget<AppsTransitionDelegate>
public void removeChildNoTransition(com.google.gwt.user.client.ui.Widget w)
removeChildNoTransition
in class ViewportWidget<AppsTransitionDelegate>
public boolean isAppClosing()
public void showAppPreloader(String appName)
public boolean hasPreloader()
public void removePreloader()
public com.google.gwt.event.shared.HandlerRegistration addSwipeStartHandler(SwipeStartHandler handler)
HasSwipeHandlers
SwipeStartEvent
addSwipeStartHandler
in interface HasSwipeHandlers
handler
- the handler to registerHandlerRegistration
public com.google.gwt.event.shared.HandlerRegistration addSwipeMoveHandler(SwipeMoveHandler handler)
HasSwipeHandlers
SwipeMoveHandler
addSwipeMoveHandler
in interface HasSwipeHandlers
handler
- the handler to registerHandlerRegistration
public com.google.gwt.event.shared.HandlerRegistration addSwipeEndHandler(SwipeEndHandler handler)
HasSwipeHandlers
SwipeEndHandler
addSwipeEndHandler
in interface HasSwipeHandlers
handler
- the handler to registerHandlerRegistration
Copyright © 2018 Magnolia International Ltd.. All rights reserved.