org.cruxframework.crux.core.client.screen.views
Class MultipleCrawlableViewsContainer

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.CrawlableViewContainer
                      extended by org.cruxframework.crux.core.client.screen.views.MultipleCrawlableViewsContainer
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

public abstract class MultipleCrawlableViewsContainer
extends CrawlableViewContainer

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
protected  FastMap<View> activeViews
           
 
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
MultipleCrawlableViewsContainer(com.google.gwt.user.client.ui.Widget mainWidget, boolean clearPanelsForDeactivatedViews)
           
 
Method Summary
protected  boolean activate(View view, com.google.gwt.user.client.ui.Panel containerPanel, Object parameter)
          This method must be called by subclasses when any of your views is rendered.
protected  boolean deactivate(View view, com.google.gwt.user.client.ui.Panel containerPanel, boolean skipEvent)
          This method must be called by subclasses when any of your views currently rendered is removed from view.
protected  boolean hasHistoryHandlers()
           
protected  boolean hasOrientationChangeHandlers()
           
protected  boolean hasResizeHandlers()
           
protected  boolean hasWindowCloseHandlers()
           
protected  boolean hasWindowClosingHandlers()
           
protected  void notifyViewsAboutHistoryChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
           
protected  void notifyViewsAboutOrientationChange()
           
protected  void notifyViewsAboutWindowClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.Window> event)
           
protected  void notifyViewsAboutWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
           
protected  void notifyViewsAboutWindowResize(com.google.gwt.event.logical.shared.ResizeEvent event)
           
 
Methods inherited from class org.cruxframework.crux.core.client.screen.views.CrawlableViewContainer
attachHistoryControlHandler, bindToDOM, dettachHistoryControlHandler, getDefaultHistoryPrefix, getHistoryControlPrefix, isHistoryControlEnabled, isViewDisplayed, setHistoryControlEnabled, setHistoryControlPrefix, synchronizeHistoryState, unbindToDOM, updateViewToken
 
Methods inherited from class org.cruxframework.crux.core.client.screen.views.ViewContainer
add, add, addLazy, addView, adoptView, clear, createView, createView, doAdd, doRemove, getContainerPanel, getMainWidget, getView, getViewFactory, handleViewTitle, loadAndRenderView, loadView, loadView, loadView, remove, remove, renderView, showView, showView, showView
 
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
 

Field Detail

activeViews

protected FastMap<View> activeViews
Constructor Detail

MultipleCrawlableViewsContainer

public MultipleCrawlableViewsContainer(com.google.gwt.user.client.ui.Widget mainWidget,
                                       boolean clearPanelsForDeactivatedViews)
Method Detail

activate

protected boolean activate(View view,
                           com.google.gwt.user.client.ui.Panel containerPanel,
                           Object parameter)
Description copied from class: ViewContainer
This method must be called by subclasses when any of your views is rendered.

Overrides:
activate in class CrawlableViewContainer

deactivate

protected boolean deactivate(View view,
                             com.google.gwt.user.client.ui.Panel containerPanel,
                             boolean skipEvent)
Description copied from class: ViewContainer
This method must be called by subclasses when any of your views currently rendered is removed from view.

Overrides:
deactivate in class ViewContainer
Returns:
True if view is deactivated

hasResizeHandlers

protected boolean hasResizeHandlers()
Specified by:
hasResizeHandlers in class ViewContainer

hasWindowCloseHandlers

protected boolean hasWindowCloseHandlers()
Specified by:
hasWindowCloseHandlers in class ViewContainer

hasWindowClosingHandlers

protected boolean hasWindowClosingHandlers()
Specified by:
hasWindowClosingHandlers in class ViewContainer

hasOrientationChangeHandlers

protected boolean hasOrientationChangeHandlers()
Specified by:
hasOrientationChangeHandlers in class ViewContainer

hasHistoryHandlers

protected boolean hasHistoryHandlers()
Specified by:
hasHistoryHandlers in class ViewContainer

notifyViewsAboutWindowResize

protected void notifyViewsAboutWindowResize(com.google.gwt.event.logical.shared.ResizeEvent event)
Specified by:
notifyViewsAboutWindowResize in class ViewContainer

notifyViewsAboutWindowClose

protected void notifyViewsAboutWindowClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.Window> event)
Specified by:
notifyViewsAboutWindowClose in class ViewContainer

notifyViewsAboutWindowClosing

protected void notifyViewsAboutWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
Specified by:
notifyViewsAboutWindowClosing in class ViewContainer

notifyViewsAboutOrientationChange

protected void notifyViewsAboutOrientationChange()
Specified by:
notifyViewsAboutOrientationChange in class ViewContainer

notifyViewsAboutHistoryChange

protected void notifyViewsAboutHistoryChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
Specified by:
notifyViewsAboutHistoryChange in class ViewContainer


Copyright © 2014. All rights reserved.