public class CmsAppWorkplaceUi extends A_CmsUI implements com.vaadin.navigator.ViewDisplay, com.vaadin.navigator.ViewProvider, com.vaadin.navigator.ViewChangeListener, I_CmsWindowCloseListener, com.vaadin.server.Page.BrowserWindowResizeListener
com.vaadin.ui.UI.WindowOrderUpdateEvent, com.vaadin.ui.UI.WindowOrderUpdateListenercom.vaadin.navigator.ViewChangeListener.ViewChangeEventcom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener| Modifier and Type | Field and Description |
|---|---|
protected com.vaadin.navigator.View |
m_launchRedirect
Launch pad redirect view.
|
static java.lang.String |
WINDOW_TITLE_PREFIX
The OpenCms window title prefix.
|
LAST_OFFLINE_PROJECT| Constructor and Description |
|---|
CmsAppWorkplaceUi()
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 |
changeCurrentAppState(java.lang.String state)
Call to add a new browser history entry.
|
void |
checkBroadcasts()
Checks for new broadcasts.
|
void |
closeWindows()
Closes all opened dialog windows.
|
void |
detach() |
void |
disableGlobalShortcuts()
Disables the global keyboard shortcuts.
|
void |
enableGlobalShortcuts()
Enables the global keyboard shortcuts.
|
static CmsAppWorkplaceUi |
get()
Gets the current UI instance.
|
java.lang.String |
getAppState()
Returns the state parameter of the current app.
|
com.vaadin.navigator.View |
getCurrentView()
Gets the current view.
|
java.util.Locale |
getLocale() |
com.vaadin.navigator.View |
getView(java.lang.String viewName) |
java.lang.String |
getViewName(java.lang.String viewAndParameters) |
void |
historyBack()
Executes the history back function.
|
void |
historyForward()
Executes the history forward function.
|
protected void |
init(com.vaadin.server.VaadinRequest req) |
static boolean |
isOnlineProject()
Returns whether the current project is the online project.
|
void |
onError()
Called when an error occurs.
|
void |
onWindowClose()
Executed on window close.
|
void |
reload()
Reloads the current UI.
|
void |
setLastHeartbeatTimestamp(long lastHeartbeat) |
static void |
setWindowTitle(java.lang.String title)
Sets the window title adding an OpenCms prefix.
|
void |
showApp(I_CmsWorkplaceAppConfiguration appConfig)
Navigates to the given app.
|
void |
showApp(I_CmsWorkplaceAppConfiguration appConfig,
java.lang.String state)
Navigates to the given app.
|
void |
showHome()
Navigates to the home screen.
|
void |
showView(com.vaadin.navigator.View view) |
changeProject, changeSite, getAttribute, getCmsObject, getDisplayType, getHttpSession, getLastOfflineProject, getParameters, getWorkplaceSettings, openPageOrWarn, openPageOrWarn, setAttribute, setContentToDialog, setContentToDialog, setErroraccess, accessSynchronously, addAction, addActionHandler, addClickListener, addPollListener, addWindow, addWindowOrderUpdateListener, attach, changeVariables, close, doInit, doRefresh, focus, getActionManager, getActiveDragSource, getComponentCount, getConnectorTracker, getCurrent, getEmbedId, getLastHeartbeatTimestamp, getLastProcessedClientToServerId, getLoadingIndicatorConfiguration, getLocaleService, getNavigator, getNotificationConfiguration, getOverlayContainerLabel, getPage, getPollInterval, getPushConfiguration, getPushConnection, getReconnectDialogConfiguration, getScrollLeft, getScrollTop, getSession, getState, getState, getStateType, getTabIndex, getTheme, getTooltipConfiguration, getUI, getUIId, getUiPathInfo, getUiRootPath, getWindows, isClosing, isConnectorEnabled, isMobileHtml5DndEnabled, isResizeLazy, iterator, paintContent, push, refresh, removeAction, removeActionHandler, removeClickListener, removePollListener, removeWindow, scrollIntoView, setActiveDragSource, setCaption, setContent, setCurrent, setFocusedComponent, setLastProcessedClientToServerId, setMobileHtml5DndEnabled, setNavigator, setOverlayContainerLabel, setPollInterval, setPushConnection, setResizeLazy, setScrollLeft, setScrollTop, setSession, setTabIndex, setTheme, showNotification, showNotification, showNotification, showNotification, showNotification, showNotificationaddComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getContent, readDesign, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setHeight, setWidth, writeDesignaddContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, findAncestor, fireComponentErrorEvent, fireComponentEvent, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getParent, getPrimaryStyleName, getStyleName, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, handleConnectorRequest, isAttached, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic static final java.lang.String WINDOW_TITLE_PREFIX
protected com.vaadin.navigator.View m_launchRedirect
public CmsAppWorkplaceUi()
public static CmsAppWorkplaceUi get()
public static boolean isOnlineProject()
true if the current project is the online projectpublic static void setWindowTitle(java.lang.String title)
title - the window titlepublic 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 changeCurrentAppState(java.lang.String state)
state - the current app view statepublic void checkBroadcasts()
public void closeWindows()
A_CmsUIcloseWindows in class A_CmsUIA_CmsUI.closeWindows()public void detach()
detach in interface com.vaadin.server.ClientConnectordetach in class com.vaadin.ui.UIUI.detach()public void disableGlobalShortcuts()
public void enableGlobalShortcuts()
public java.lang.String getAppState()
public com.vaadin.navigator.View getCurrentView()
public java.util.Locale getLocale()
getLocale in interface com.vaadin.ui.ComponentgetLocale in class com.vaadin.ui.AbstractComponentAbstractComponent.getLocale()public com.vaadin.navigator.View getView(java.lang.String viewName)
getView in interface com.vaadin.navigator.ViewProviderViewProvider.getView(java.lang.String)public java.lang.String getViewName(java.lang.String viewAndParameters)
getViewName in interface com.vaadin.navigator.ViewProviderViewProvider.getViewName(java.lang.String)public void historyBack()
public void historyForward()
public void onError()
public void onWindowClose()
I_CmsWindowCloseListeneronWindowClose in interface I_CmsWindowCloseListenerI_CmsWindowCloseListener.onWindowClose()public void reload()
A_CmsUIreload in class A_CmsUIA_CmsUI.reload()public void setLastHeartbeatTimestamp(long lastHeartbeat)
setLastHeartbeatTimestamp in class com.vaadin.ui.UIUI.setLastHeartbeatTimestamp(long)public void showApp(I_CmsWorkplaceAppConfiguration appConfig)
appConfig - the app configurationpublic void showApp(I_CmsWorkplaceAppConfiguration appConfig, java.lang.String state)
appConfig - the app configurationstate - the app state to callpublic void showHome()
public void showView(com.vaadin.navigator.View view)
showView in interface com.vaadin.navigator.ViewDisplayViewDisplay.showView(com.vaadin.navigator.View)