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
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing caching status of a view.protected classUsed 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) booleanbeforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) voidbrowserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent event) voidDisables the global keyboard shortcuts.voidEnables the global keyboard shortcuts.voidenter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) voidEnters 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.voidhandleAction(com.vaadin.event.Action action, Object sender, Object target) booleanReturns whether this view should be cached within the user session.voidExecuted on window close.Creates a new component instance.booleanReturns whether this view needs to be restored from cache.voidRestores the view from cache.voidsetCacheStatus(CmsAppView.CacheStatus status) Sets the cache status.voidsetRequiresRestore(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, waitMethods inherited from interface com.vaadin.navigator.View
beforeLeave, getViewComponent
-
Constructor Details
-
CmsAppView
Constructor.- Parameters:
appConfig- the app configuration
-
-
Method Details
-
browserWindowResized
- Specified by:
browserWindowResizedin interfacecom.vaadin.server.Page.BrowserWindowResizeListener- See Also:
-
disableGlobalShortcuts
Description copied from interface:I_CmsAppViewDisables the global keyboard shortcuts.- Specified by:
disableGlobalShortcutsin interfaceI_CmsAppView- See Also:
-
enableGlobalShortcuts
Description copied from interface:I_CmsAppViewEnables the global keyboard shortcuts.- Specified by:
enableGlobalShortcutsin interfaceI_CmsAppView- See Also:
-
enter
Description copied from interface:I_CmsAppViewEnters the view.- Specified by:
enterin interfaceI_CmsAppView- Parameters:
newState- the state to set- See Also:
-
getActions
- Specified by:
getActionsin interfacecom.vaadin.event.Action.Handler- See Also:
-
getCacheStatus
Gets the cache status of the view.- Returns:
- the cache status of the view
-
getComponent
Description copied from interface:I_CmsAppViewReturns the app component, initializes it if required.- Specified by:
getComponentin interfaceI_CmsAppView- Returns:
- the component
- See Also:
-
getName
Description copied from interface:I_CmsAppViewReturns the view name.- Specified by:
getNamein interfaceI_CmsAppView- Returns:
- the view name
- See Also:
-
handleAction
- Specified by:
handleActionin interfacecom.vaadin.event.Action.Handler- See Also:
-
isCachable
Description copied from interface:I_CmsAppViewReturns whether this view should be cached within the user session.- Specified by:
isCachablein interfaceI_CmsAppView- Returns:
trueif the view is cachable- See Also:
-
onWindowClose
Description copied from interface:I_CmsWindowCloseListenerExecuted on window close.- Specified by:
onWindowClosein interfaceI_CmsWindowCloseListener- See Also:
-
reinitComponent
Description copied from interface:I_CmsAppViewCreates a new component instance.- Specified by:
reinitComponentin interfaceI_CmsAppView- Returns:
- the new component
- See Also:
-
requiresRestore
Description copied from interface:I_CmsAppViewReturns whether this view needs to be restored from cache.- Specified by:
requiresRestorein interfaceI_CmsAppView- Returns:
trueif this view needs to be restored from cache- See Also:
-
restoreFromCache
Restores the view from cache.- Specified by:
restoreFromCachein interfaceI_CmsAppView
-
setCacheStatus
Sets the cache status.- Parameters:
status- the new cache status
-
setRequiresRestore
Description copied from interface:I_CmsAppViewSets the requires restore from cache flag.- Specified by:
setRequiresRestorein interfaceI_CmsAppView- Parameters:
restored- the requires restore from cache flag- See Also:
-
toString