public class CmsAppView extends java.lang.Object implements com.vaadin.navigator.ViewChangeListener, I_CmsWindowCloseListener, I_CmsAppView, com.vaadin.event.Action.Handler
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 |
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.
|
public CmsAppView(I_CmsWorkplaceAppConfiguration appConfig)
appConfig
- the app configurationpublic void afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
afterViewChange
in interface com.vaadin.navigator.ViewChangeListener
ViewChangeListener.afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)
public boolean beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
beforeViewChange
in interface com.vaadin.navigator.ViewChangeListener
ViewChangeListener.beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)
public void disableGlobalShortcuts()
I_CmsAppView
disableGlobalShortcuts
in interface I_CmsAppView
I_CmsAppView.disableGlobalShortcuts()
public void enableGlobalShortcuts()
I_CmsAppView
enableGlobalShortcuts
in interface I_CmsAppView
I_CmsAppView.enableGlobalShortcuts()
public void enter(java.lang.String newState)
I_CmsAppView
enter
in interface I_CmsAppView
newState
- the state to setI_CmsAppView.enter(java.lang.String)
public void enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
enter
in interface com.vaadin.navigator.View
View.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.Handler
Action.Handler.getActions(java.lang.Object, java.lang.Object)
public CmsAppView.CacheStatus getCacheStatus()
public CmsAppViewLayout getComponent()
I_CmsAppView
getComponent
in interface I_CmsAppView
I_CmsAppView.getComponent()
public java.lang.String getName()
I_CmsAppView
getName
in interface I_CmsAppView
I_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.Handler
Action.Handler.handleAction(com.vaadin.event.Action, java.lang.Object, java.lang.Object)
public boolean isCachable()
I_CmsAppView
isCachable
in interface I_CmsAppView
true
if the view is cachableI_CmsAppView.isCachable()
public void onWindowClose()
I_CmsWindowCloseListener
onWindowClose
in interface I_CmsWindowCloseListener
I_CmsWindowCloseListener.onWindowClose()
public CmsAppViewLayout reinitComponent()
I_CmsAppView
reinitComponent
in interface I_CmsAppView
I_CmsAppView.reinitComponent()
public boolean requiresRestore()
I_CmsAppView
requiresRestore
in interface I_CmsAppView
true
if this view needs to be restored from cacheI_CmsAppView.requiresRestore()
public void restoreFromCache()
restoreFromCache
in interface I_CmsAppView
public void setCacheStatus(CmsAppView.CacheStatus status)
status
- the new cache statuspublic void setRequiresRestore(boolean restored)
I_CmsAppView
setRequiresRestore
in interface I_CmsAppView
restored
- the requires restore from cache flagI_CmsAppView.setRequiresRestore(boolean)