Package org.opencms.ui.apps
Class CmsAppView
java.lang.Object
org.opencms.ui.apps.CmsAppView
- All Implemented Interfaces:
com.vaadin.event.Action.Handler
,com.vaadin.event.SerializableEventListener
,com.vaadin.navigator.View
,com.vaadin.navigator.ViewChangeListener
,com.vaadin.server.Page.BrowserWindowResizeListener
,Serializable
,EventListener
,I_CmsWindowCloseListener
,I_CmsAppView
public class CmsAppView
extends Object
implements com.vaadin.navigator.ViewChangeListener, I_CmsWindowCloseListener, I_CmsAppView, com.vaadin.event.Action.Handler, com.vaadin.server.Page.BrowserWindowResizeListener
Displays the selected app.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum representing caching status of a view.protected class
Used in case the requested app can not be displayed to the current user.Nested classes/interfaces inherited from interface com.vaadin.navigator.ViewChangeListener
com.vaadin.navigator.ViewChangeListener.ViewChangeEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterViewChange
(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) boolean
beforeViewChange
(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) void
browserWindowResized
(com.vaadin.server.Page.BrowserWindowResizeEvent event) void
Disables the global keyboard shortcuts.void
Enables the global keyboard shortcuts.void
enter
(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) void
Enters the view.com.vaadin.event.Action[]
getActions
(Object target, Object sender) Gets the cache status of the view.Returns the app component, initializes it if required.getName()
Returns the view name.void
handleAction
(com.vaadin.event.Action action, Object sender, Object target) boolean
Returns whether this view should be cached within the user session.void
Executed on window close.Creates a new component instance.boolean
Returns whether this view needs to be restored from cache.void
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.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.vaadin.navigator.View
beforeLeave, getViewComponent
-
Constructor Details
-
CmsAppView
Constructor.- Parameters:
appConfig
- the app configuration
-
-
Method Details
-
browserWindowResized
- Specified by:
browserWindowResized
in interfacecom.vaadin.server.Page.BrowserWindowResizeListener
- See Also:
-
Page.BrowserWindowResizeListener.browserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent)
-
disableGlobalShortcuts
Description copied from interface:I_CmsAppView
Disables the global keyboard shortcuts.- Specified by:
disableGlobalShortcuts
in interfaceI_CmsAppView
- See Also:
-
enableGlobalShortcuts
Description copied from interface:I_CmsAppView
Enables the global keyboard shortcuts.- Specified by:
enableGlobalShortcuts
in interfaceI_CmsAppView
- See Also:
-
enter
Description copied from interface:I_CmsAppView
Enters the view.- Specified by:
enter
in interfaceI_CmsAppView
- Parameters:
newState
- the state to set- See Also:
-
getActions
- Specified by:
getActions
in interfacecom.vaadin.event.Action.Handler
- See Also:
-
Action.Handler.getActions(java.lang.Object, java.lang.Object)
-
getCacheStatus
Gets the cache status of the view.- Returns:
- the cache status of the view
-
getComponent
Description copied from interface:I_CmsAppView
Returns the app component, initializes it if required.- Specified by:
getComponent
in interfaceI_CmsAppView
- Returns:
- the component
- See Also:
-
getName
Description copied from interface:I_CmsAppView
Returns the view name.- Specified by:
getName
in interfaceI_CmsAppView
- Returns:
- the view name
- See Also:
-
handleAction
- Specified by:
handleAction
in interfacecom.vaadin.event.Action.Handler
- See Also:
-
Action.Handler.handleAction(com.vaadin.event.Action, java.lang.Object, java.lang.Object)
-
isCachable
Description copied from interface:I_CmsAppView
Returns whether this view should be cached within the user session.- Specified by:
isCachable
in interfaceI_CmsAppView
- Returns:
true
if the view is cachable- See Also:
-
onWindowClose
Description copied from interface:I_CmsWindowCloseListener
Executed on window close.- Specified by:
onWindowClose
in interfaceI_CmsWindowCloseListener
- See Also:
-
reinitComponent
Description copied from interface:I_CmsAppView
Creates a new component instance.- Specified by:
reinitComponent
in interfaceI_CmsAppView
- Returns:
- the new component
- See Also:
-
requiresRestore
Description copied from interface:I_CmsAppView
Returns whether this view needs to be restored from cache.- Specified by:
requiresRestore
in interfaceI_CmsAppView
- Returns:
true
if this view needs to be restored from cache- See Also:
-
restoreFromCache
Restores the view from cache.- Specified by:
restoreFromCache
in interfaceI_CmsAppView
-
setCacheStatus
Sets the cache status.- Parameters:
status
- the new cache status
-
setRequiresRestore
Description copied from interface:I_CmsAppView
Sets the requires restore from cache flag.- Specified by:
setRequiresRestore
in interfaceI_CmsAppView
- Parameters:
restored
- the requires restore from cache flag- See Also:
-
toString