org.cruxframework.crux.widgets.client.swapcontainer
Class HorizontalSwapContainer

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.cruxframework.crux.core.client.screen.views.ViewContainer
                  extended by org.cruxframework.crux.core.client.screen.views.ParameterizedViewContainer
                      extended by org.cruxframework.crux.core.client.screen.views.SingleViewContainer
                          extended by org.cruxframework.crux.widgets.client.swapcontainer.HorizontalSwapContainer
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, HasChangeViewHandlers

public class HorizontalSwapContainer
extends SingleViewContainer
implements HasChangeViewHandlers

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
static String DEFAULT_STYLE_NAME
           
 
Fields inherited from class org.cruxframework.crux.core.client.screen.views.SingleViewContainer
activeView
 
Fields inherited from class org.cruxframework.crux.core.client.screen.views.ViewContainer
logger, views
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
HorizontalSwapContainer()
           
 
Method Summary
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)
           
 
Methods inherited from class org.cruxframework.crux.core.client.screen.views.SingleViewContainer
deactivate, getActiveView, hasHistoryHandlers, hasOrientationChangeHandlers, hasResizeHandlers, hasWindowCloseHandlers, hasWindowClosingHandlers, notifyViewsAboutHistoryChange, notifyViewsAboutOrientationChange, notifyViewsAboutWindowClose, notifyViewsAboutWindowClosing, notifyViewsAboutWindowResize
 
Methods inherited from class org.cruxframework.crux.core.client.screen.views.ParameterizedViewContainer
add, loadView, showView
 
Methods inherited from class org.cruxframework.crux.core.client.screen.views.ViewContainer
add, addLazy, addView, adoptView, bindToDOM, clear, createView, createView, doAdd, doRemove, getMainWidget, getView, getViewFactory, loadAndRenderView, loadView, loadView, remove, remove, showView, showView, unbindToDOM
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

DEFAULT_STYLE_NAME

public static final String DEFAULT_STYLE_NAME
See Also:
Constant Field Values
Constructor Detail

HorizontalSwapContainer

public HorizontalSwapContainer()
Method Detail

isAutoRemoveInactiveViews

public boolean isAutoRemoveInactiveViews()
Returns:

isInheritHeightForPanels

public boolean isInheritHeightForPanels()

setInheritHeightForPanels

public void setInheritHeightForPanels(boolean inheritHeightForPanels)

setAutoRemoveInactiveViews

public void setAutoRemoveInactiveViews(boolean autoRemoveInactiveViews)
Parameters:
autoRemoveInactiveViews -

showView

public void showView(String viewName,
                     HorizontalSwapPanel.Direction direction)
Parameters:
viewId -
direction -

showView

public void showView(String viewName,
                     String viewId,
                     HorizontalSwapPanel.Direction direction)
Parameters:
viewName -
viewId -
direction -

showView

public void showView(String viewName,
                     String viewId,
                     HorizontalSwapPanel.Direction direction,
                     Object parameter)
Parameters:
viewName -
viewId -
direction -
parameter -

showView

public void showView(String viewName,
                     String viewId,
                     HorizontalSwapPanel.Direction direction,
                     Transition.Callback animationCallback,
                     Object parameter)
Parameters:
viewName -
viewId -
direction -

renderView

protected boolean renderView(View view,
                             HorizontalSwapPanel.Direction direction,
                             Object parameter)
Parameters:
view -
direction -
parameter -
Returns:

renderView

protected boolean renderView(View view,
                             HorizontalSwapPanel.Direction direction,
                             Transition.Callback animationCallback,
                             Object parameter)
Parameters:
view -
direction -
parameter -

renderView

protected boolean renderView(View view,
                             Object parameter)
Overrides:
renderView in class ViewContainer

activate

protected boolean activate(View view,
                           com.google.gwt.user.client.ui.Panel containerPanel,
                           Object parameter)
Overrides:
activate in class SingleViewContainer

getContainerPanel

protected com.google.gwt.user.client.ui.Panel getContainerPanel(View view)
Specified by:
getContainerPanel in class ViewContainer

handleViewTitle

protected void handleViewTitle(String title,
                               com.google.gwt.user.client.ui.Panel containerPanel,
                               String viewId)
Specified by:
handleViewTitle in class ViewContainer

getTransitionDuration

public int getTransitionDuration()
Returns:

isAnimationEnabled

public boolean isAnimationEnabled()
Returns:

setAnimationEnabled

public void setAnimationEnabled(boolean enabled,
                                DeviceAdaptive.Device device)
Parameters:
enabled -
device -

setAnimationEnabled

public void setAnimationEnabled(boolean enabled,
                                DeviceAdaptive.Size size)
Parameters:
enabled -
size -

setAnimationEnabledForLargeDevices

public void setAnimationEnabledForLargeDevices(boolean enabled)
Parameters:
enabled -

setAnimationEnabledForSmallDevices

public void setAnimationEnabledForSmallDevices(boolean enabled)
Parameters:
enabled -

setTransitionDuration

public void setTransitionDuration(int transitionDuration)
Parameters:
transitionDuration -

addChangeViewHandler

public com.google.gwt.event.shared.HandlerRegistration addChangeViewHandler(ChangeViewHandler handler)
Specified by:
addChangeViewHandler in interface HasChangeViewHandlers

isAnimationRunning

public boolean isAnimationRunning()


Copyright © 2014. All rights reserved.