public class HorizontalSwapContainer extends SingleViewContainer implements HasChangeViewHandlers
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STYLE_NAME |
activeViewlogger, views| Constructor and Description |
|---|
HorizontalSwapContainer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
activate(View view,
com.google.gwt.user.client.ui.Panel containerPanel,
Object parameter) |
com.google.gwt.event.shared.HandlerRegistration |
addChangeViewHandler(ChangeViewHandler handler) |
protected com.google.gwt.user.client.ui.Panel |
getContainerPanel(View view) |
int |
getTransitionDuration() |
protected void |
handleViewTitle(String title,
com.google.gwt.user.client.ui.Panel containerPanel,
String viewId) |
boolean |
isAnimationEnabled() |
boolean |
isAnimationRunning() |
boolean |
isAutoRemoveInactiveViews() |
boolean |
isInheritHeightForPanels() |
protected boolean |
renderView(View view,
HorizontalSwapPanel.Direction direction,
Object parameter) |
protected boolean |
renderView(View view,
HorizontalSwapPanel.Direction direction,
Transition.Callback animationCallback,
Object parameter) |
protected boolean |
renderView(View view,
Object parameter) |
void |
setAnimationEnabled(boolean enabled,
DeviceAdaptive.Device device) |
void |
setAnimationEnabled(boolean enabled,
DeviceAdaptive.Size size) |
void |
setAnimationEnabledForLargeDevices(boolean enabled) |
void |
setAnimationEnabledForSmallDevices(boolean enabled) |
void |
setAutoRemoveInactiveViews(boolean autoRemoveInactiveViews) |
void |
setInheritHeightForPanels(boolean inheritHeightForPanels) |
void |
setTransitionDuration(int transitionDuration) |
void |
showView(String viewName,
HorizontalSwapPanel.Direction direction) |
void |
showView(String viewName,
String viewId,
HorizontalSwapPanel.Direction direction) |
void |
showView(String viewName,
String viewId,
HorizontalSwapPanel.Direction direction,
Object parameter) |
void |
showView(String viewName,
String viewId,
HorizontalSwapPanel.Direction direction,
Transition.Callback animationCallback,
Object parameter) |
deactivate, getActiveView, hasHistoryHandlers, hasOrientationChangeHandlers, hasResizeHandlers, hasWindowCloseHandlers, hasWindowClosingHandlers, notifyViewsAboutHistoryChange, notifyViewsAboutOrientationChange, notifyViewsAboutWindowClose, notifyViewsAboutWindowClosing, notifyViewsAboutWindowResizeadd, loadView, showViewadd, addLazy, addView, adoptView, bindToDOM, clear, createView, createView, doAdd, doRemove, getMainWidget, getView, getViewFactory, loadAndRenderView, loadView, loadView, remove, remove, showView, showView, unbindToDOMclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, 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 static final String DEFAULT_STYLE_NAME
public boolean isAutoRemoveInactiveViews()
public boolean isInheritHeightForPanels()
public void setInheritHeightForPanels(boolean inheritHeightForPanels)
public void setAutoRemoveInactiveViews(boolean autoRemoveInactiveViews)
autoRemoveInactiveViews - public void showView(String viewName, HorizontalSwapPanel.Direction direction)
viewId - direction - public void showView(String viewName, String viewId, HorizontalSwapPanel.Direction direction)
viewName - viewId - direction - public void showView(String viewName, String viewId, HorizontalSwapPanel.Direction direction, Object parameter)
viewName - viewId - direction - parameter - public void showView(String viewName, String viewId, HorizontalSwapPanel.Direction direction, Transition.Callback animationCallback, Object parameter)
viewName - viewId - direction - protected boolean renderView(View view, HorizontalSwapPanel.Direction direction, Object parameter)
view - direction - parameter - protected boolean renderView(View view, HorizontalSwapPanel.Direction direction, Transition.Callback animationCallback, Object parameter)
view - direction - parameter - protected boolean renderView(View view, Object parameter)
renderView in class ViewContainerprotected boolean activate(View view, com.google.gwt.user.client.ui.Panel containerPanel, Object parameter)
activate in class SingleViewContainerprotected com.google.gwt.user.client.ui.Panel getContainerPanel(View view)
getContainerPanel in class ViewContainerprotected void handleViewTitle(String title, com.google.gwt.user.client.ui.Panel containerPanel, String viewId)
handleViewTitle in class ViewContainerpublic int getTransitionDuration()
public boolean isAnimationEnabled()
public void setAnimationEnabled(boolean enabled,
DeviceAdaptive.Device device)
enabled - device - public void setAnimationEnabled(boolean enabled,
DeviceAdaptive.Size size)
enabled - size - public void setAnimationEnabledForLargeDevices(boolean enabled)
enabled - public void setAnimationEnabledForSmallDevices(boolean enabled)
enabled - public void setTransitionDuration(int transitionDuration)
transitionDuration - public com.google.gwt.event.shared.HandlerRegistration addChangeViewHandler(ChangeViewHandler handler)
addChangeViewHandler in interface HasChangeViewHandlerspublic boolean isAnimationRunning()
Copyright © 2014. All rights reserved.