public class CmsAppViewLayout extends com.vaadin.ui.CssLayout implements I_CmsAppUIContext, com.vaadin.server.Page.BrowserWindowResizeListener
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.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.DetachListener| Constructor and Description |
|---|
CmsAppViewLayout(java.lang.String appId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.ui.Button |
addPublishButton(I_CmsUpdateListener<java.lang.String> updateListener)
Adds the publish button to the toolbar.
|
void |
addToolbarButton(com.vaadin.ui.Component button)
Adds a toolbar button.
|
void |
addToolbarButtonRight(com.vaadin.ui.Component button)
Adds a toolbar button to the right hand side.
|
void |
browserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent event) |
void |
clearToolbarButtons()
Removes the app's toolbar buttons.
|
void |
closePopupViews()
Closes the toolbar popup views.
|
static com.vaadin.ui.Button |
createPublishButton(I_CmsUpdateListener<java.lang.String> updateListener)
Creates the publish button.
|
void |
enableDefaultToolbarButtons(boolean enabled)
Enables or removes the default toolbar buttons.
|
java.lang.String |
getAppId()
Returns the app id.
|
java.lang.Object |
getAttribute(java.lang.String key)
Gets an attribute.
|
void |
hideToolbar()
Hides the the toolbar.
|
void |
removeToolbarButton(com.vaadin.ui.Component button)
Removes the given button from the toolbar.
|
void |
setAppContent(com.vaadin.ui.Component appContent)
Sets the app content component.
|
void |
setAppInfo(com.vaadin.ui.Component infoContent)
Sets the app info component.
|
void |
setAppTitle(java.lang.String title)
Sets the app title.
|
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Sets an attribute.
|
void |
setMenuDialogContext(I_CmsDialogContext context)
Sets the dialog context for context menu entries.
|
void |
showInfoArea(boolean show)
Sets the info grid visibility.
|
void |
showToolbar()
Shows the formerly hidden toolbar.
|
void |
updateOnChange()
Updates the ui context on site or project changes.
|
void |
updateUserInfo()
Updates the displayed user info.
|
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, 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, getSession, getStateType, getUI, 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, waitaddComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic CmsAppViewLayout(java.lang.String appId)
appId - the app idpublic static com.vaadin.ui.Button createPublishButton(I_CmsUpdateListener<java.lang.String> updateListener)
updateListener - the update listenerpublic com.vaadin.ui.Button addPublishButton(I_CmsUpdateListener<java.lang.String> updateListener)
I_CmsAppUIContextaddPublishButton in interface I_CmsAppUIContextupdateListener - the update listener, called after publishingI_CmsAppUIContext.addPublishButton(org.opencms.ui.I_CmsUpdateListener)public void addToolbarButton(com.vaadin.ui.Component button)
I_CmsAppUIContextaddToolbarButton in interface I_CmsAppUIContextbutton - the button to addI_CmsAppUIContext.addToolbarButton(com.vaadin.ui.Component)public void addToolbarButtonRight(com.vaadin.ui.Component button)
I_CmsAppUIContextaddToolbarButtonRight in interface I_CmsAppUIContextbutton - the button to addI_CmsAppUIContext.addToolbarButtonRight(com.vaadin.ui.Component)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 clearToolbarButtons()
I_CmsAppUIContextclearToolbarButtons in interface I_CmsAppUIContextI_CmsAppUIContext.clearToolbarButtons()public void closePopupViews()
public void enableDefaultToolbarButtons(boolean enabled)
I_CmsAppUIContextThese are the context menu and the quick launch drop down.
The default is enabled = true.
enableDefaultToolbarButtons in interface I_CmsAppUIContextenabled - true to enable the buttonsI_CmsAppUIContext.enableDefaultToolbarButtons(boolean)public java.lang.String getAppId()
I_CmsAppUIContextgetAppId in interface I_CmsAppUIContextI_CmsAppUIContext.getAppId()public java.lang.Object getAttribute(java.lang.String key)
I_CmsAppUIContextgetAttribute in interface I_CmsAppUIContextkey - the attribute keyI_CmsAppUIContext.getAttribute(java.lang.String)public void hideToolbar()
I_CmsAppUIContexthideToolbar in interface I_CmsAppUIContextI_CmsAppUIContext.hideToolbar()public void removeToolbarButton(com.vaadin.ui.Component button)
I_CmsAppUIContextremoveToolbarButton in interface I_CmsAppUIContextbutton - the button to removeI_CmsAppUIContext.removeToolbarButton(com.vaadin.ui.Component)public void setAppContent(com.vaadin.ui.Component appContent)
setAppContent in interface I_CmsAppUIContextappContent - the app contentpublic void setAppInfo(com.vaadin.ui.Component infoContent)
I_CmsAppUIContextsetAppInfo in interface I_CmsAppUIContextinfoContent - the info componentI_CmsAppUIContext.setAppInfo(com.vaadin.ui.Component)public void setAppTitle(java.lang.String title)
I_CmsAppUIContextsetAppTitle in interface I_CmsAppUIContexttitle - the app titleI_CmsAppUIContext.setAppTitle(java.lang.String)public void setAttribute(java.lang.String key, java.lang.Object value)
I_CmsAppUIContextsetAttribute in interface I_CmsAppUIContextkey - the attribute keyvalue - the attribute valueI_CmsAppUIContext.setAttribute(java.lang.String, java.lang.Object)public void setMenuDialogContext(I_CmsDialogContext context)
I_CmsAppUIContextsetMenuDialogContext in interface I_CmsAppUIContextcontext - the dialog contextI_CmsAppUIContext.setMenuDialogContext(org.opencms.ui.I_CmsDialogContext)public void showInfoArea(boolean show)
I_CmsAppUIContextshowInfoArea in interface I_CmsAppUIContextshow - true to show the infoI_CmsAppUIContext.showInfoArea(boolean)public void showToolbar()
I_CmsAppUIContextshowToolbar in interface I_CmsAppUIContextI_CmsAppUIContext.showToolbar()public void updateOnChange()
I_CmsAppUIContextupdateOnChange in interface I_CmsAppUIContextI_CmsAppUIContext.updateOnChange()public void updateUserInfo()
I_CmsAppUIContextupdateUserInfo in interface I_CmsAppUIContextI_CmsAppUIContext.updateUserInfo()