public class CmsAppView extends java.lang.Object implements com.vaadin.navigator.ViewChangeListener, I_CmsWindowCloseListener, I_CmsAppView, com.vaadin.event.Action.Handler, com.vaadin.server.Page.BrowserWindowResizeListener
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsAppView.CacheStatus
Enum representing caching status of a view.
|
protected class |
CmsAppView.NotAvailableApp
Used in case the requested app can not be displayed to the current user.
|
| Constructor and Description |
|---|
CmsAppView(I_CmsWorkplaceAppConfiguration appConfig)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) |
boolean |
beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) |
void |
browserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent event) |
void |
disableGlobalShortcuts()
Disables the global keyboard shortcuts.
|
void |
enableGlobalShortcuts()
Enables the global keyboard shortcuts.
|
void |
enter(java.lang.String newState)
Enters the view.
|
void |
enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) |
com.vaadin.event.Action[] |
getActions(java.lang.Object target,
java.lang.Object sender) |
CmsAppView.CacheStatus |
getCacheStatus()
Gets the cache status of the view.
|
CmsAppViewLayout |
getComponent()
Returns the app component, initializes it if required.
|
java.lang.String |
getName()
Returns the view name.
|
void |
handleAction(com.vaadin.event.Action action,
java.lang.Object sender,
java.lang.Object target) |
boolean |
isCachable()
Returns whether this view should be cached within the user session.
|
void |
onWindowClose()
Executed on window close.
|
CmsAppViewLayout |
reinitComponent()
Creates a new component instance.
|
boolean |
requiresRestore()
Returns whether this view needs to be restored from cache.
|
void |
restoreFromCache()
Restores the view from cache.
|
void |
setCacheStatus(CmsAppView.CacheStatus status)
Sets the cache status.
|
void |
setRequiresRestore(boolean restored)
Sets the requires restore from cache flag.
|
java.lang.String |
toString() |
public CmsAppView(I_CmsWorkplaceAppConfiguration appConfig)
appConfig - the app configurationpublic void afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
afterViewChange in interface com.vaadin.navigator.ViewChangeListenerViewChangeListener.afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)public boolean beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
beforeViewChange in interface com.vaadin.navigator.ViewChangeListenerViewChangeListener.beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)public void browserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent event)
browserWindowResized in interface com.vaadin.server.Page.BrowserWindowResizeListenerPage.BrowserWindowResizeListener.browserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent)public void disableGlobalShortcuts()
I_CmsAppViewdisableGlobalShortcuts in interface I_CmsAppViewI_CmsAppView.disableGlobalShortcuts()public void enableGlobalShortcuts()
I_CmsAppViewenableGlobalShortcuts in interface I_CmsAppViewI_CmsAppView.enableGlobalShortcuts()public void enter(java.lang.String newState)
I_CmsAppViewenter in interface I_CmsAppViewnewState - the state to setI_CmsAppView.enter(java.lang.String)public void enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
enter in interface com.vaadin.navigator.ViewView.enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)public com.vaadin.event.Action[] getActions(java.lang.Object target, java.lang.Object sender)
getActions in interface com.vaadin.event.Action.HandlerAction.Handler.getActions(java.lang.Object, java.lang.Object)public CmsAppView.CacheStatus getCacheStatus()
public CmsAppViewLayout getComponent()
I_CmsAppViewgetComponent in interface I_CmsAppViewI_CmsAppView.getComponent()public java.lang.String getName()
I_CmsAppViewgetName in interface I_CmsAppViewI_CmsAppView.getName()public void handleAction(com.vaadin.event.Action action, java.lang.Object sender, java.lang.Object target)
handleAction in interface com.vaadin.event.Action.HandlerAction.Handler.handleAction(com.vaadin.event.Action, java.lang.Object, java.lang.Object)public boolean isCachable()
I_CmsAppViewisCachable in interface I_CmsAppViewtrue if the view is cachableI_CmsAppView.isCachable()public void onWindowClose()
I_CmsWindowCloseListeneronWindowClose in interface I_CmsWindowCloseListenerI_CmsWindowCloseListener.onWindowClose()public CmsAppViewLayout reinitComponent()
I_CmsAppViewreinitComponent in interface I_CmsAppViewI_CmsAppView.reinitComponent()public boolean requiresRestore()
I_CmsAppViewrequiresRestore in interface I_CmsAppViewtrue if this view needs to be restored from cacheI_CmsAppView.requiresRestore()public void restoreFromCache()
restoreFromCache in interface I_CmsAppViewpublic void setCacheStatus(CmsAppView.CacheStatus status)
status - the new cache statuspublic void setRequiresRestore(boolean restored)
I_CmsAppViewsetRequiresRestore in interface I_CmsAppViewrestored - the requires restore from cache flagI_CmsAppView.setRequiresRestore(boolean)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()