|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cruxframework.crux.core.client.screen.views.ViewContainer
org.cruxframework.crux.core.client.screen.views.CrawlableViewContainer
public abstract class CrawlableViewContainer
A view container that handle history changes using the hashbang approach
https://developers.google.com/webmasters/ajax-crawling/docs/getting-started
| 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 |
|---|
| 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 | |
|---|---|
CrawlableViewContainer(com.google.gwt.user.client.ui.Widget mainWidget)
Constructor |
|
CrawlableViewContainer(com.google.gwt.user.client.ui.Widget mainWidget,
boolean clearPanelsForDeactivatedViews)
Constructor |
|
| 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 void |
attachHistoryControlHandler()
|
protected void |
bindToDOM()
This method must be called by subclasses when the container is attached to DOM |
protected void |
dettachHistoryControlHandler()
|
protected String |
getDefaultHistoryPrefix()
Return the default historyPrefix |
String |
getHistoryControlPrefix()
Retrieve the historyControlPrefix property value. |
boolean |
isHistoryControlEnabled()
Retrieve the historyControlEnabled property value. |
protected abstract boolean |
isViewDisplayed(String viewId)
|
void |
setHistoryControlEnabled(boolean historyControlEnabled)
Sets the historyControlEnabled property value. |
void |
setHistoryControlPrefix(String historyControlPrefix)
Sets the historyControlPrefix property value. |
protected void |
synchronizeHistoryState()
|
protected void |
unbindToDOM()
This method must be called by subclasses when the container is detached from DOM |
protected void |
updateViewToken(String token)
|
| Methods inherited from class org.cruxframework.crux.core.client.screen.views.ViewContainer |
|---|
add, add, addLazy, addView, adoptView, clear, createView, createView, deactivate, doAdd, doRemove, getContainerPanel, getMainWidget, getView, getViewFactory, handleViewTitle, hasHistoryHandlers, hasOrientationChangeHandlers, hasResizeHandlers, hasWindowCloseHandlers, hasWindowClosingHandlers, loadAndRenderView, loadView, loadView, loadView, notifyViewsAboutHistoryChange, notifyViewsAboutOrientationChange, notifyViewsAboutWindowClose, notifyViewsAboutWindowClosing, notifyViewsAboutWindowResize, 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 |
| Constructor Detail |
|---|
public CrawlableViewContainer(com.google.gwt.user.client.ui.Widget mainWidget)
mainWidget - main widget on this container
public CrawlableViewContainer(com.google.gwt.user.client.ui.Widget mainWidget,
boolean clearPanelsForDeactivatedViews)
mainWidget - Main widget on this containerclearPanelsForDeactivatedViews - If true, makes the container clear the container panel for a view, when the view is deactivated.| Method Detail |
|---|
public boolean isHistoryControlEnabled()
public void setHistoryControlEnabled(boolean historyControlEnabled)
historyControlEnabled - true to enable history controlpublic String getHistoryControlPrefix()
public void setHistoryControlPrefix(String historyControlPrefix)
historyControlPrefix - history prefix to setprotected String getDefaultHistoryPrefix()
protected void bindToDOM()
ViewContainer
bindToDOM in class ViewContainerprotected void unbindToDOM()
ViewContainer
unbindToDOM in class ViewContainer
protected boolean activate(View view,
com.google.gwt.user.client.ui.Panel containerPanel,
Object parameter)
ViewContainer
activate in class ViewContainerprotected void attachHistoryControlHandler()
protected void dettachHistoryControlHandler()
protected void synchronizeHistoryState()
protected void updateViewToken(String token)
protected abstract boolean isViewDisplayed(String viewId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||