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.SpacingHandler
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.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.
|
void |
enableDefaultToolbarButtons(boolean enabled)
Enables or removes the default toolbar buttons.
|
java.lang.String |
getAppId()
Returns the app id.
|
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 |
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, addListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, 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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListener
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public CmsAppViewLayout(java.lang.String appId)
appId
- the app idpublic com.vaadin.ui.Button addPublishButton(I_CmsUpdateListener<java.lang.String> updateListener)
I_CmsAppUIContext
addPublishButton
in interface I_CmsAppUIContext
updateListener
- the update listener, called after publishingI_CmsAppUIContext.addPublishButton(org.opencms.ui.I_CmsUpdateListener)
public void addToolbarButton(com.vaadin.ui.Component button)
I_CmsAppUIContext
addToolbarButton
in interface I_CmsAppUIContext
button
- the button to addI_CmsAppUIContext.addToolbarButton(com.vaadin.ui.Component)
public void addToolbarButtonRight(com.vaadin.ui.Component button)
I_CmsAppUIContext
addToolbarButtonRight
in interface I_CmsAppUIContext
button
- 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.BrowserWindowResizeListener
Page.BrowserWindowResizeListener.browserWindowResized(com.vaadin.server.Page.BrowserWindowResizeEvent)
public void clearToolbarButtons()
I_CmsAppUIContext
clearToolbarButtons
in interface I_CmsAppUIContext
I_CmsAppUIContext.clearToolbarButtons()
public void closePopupViews()
public void enableDefaultToolbarButtons(boolean enabled)
I_CmsAppUIContext
These are the context menu and the quick launch drop down.
The default is enabled = true
.
enableDefaultToolbarButtons
in interface I_CmsAppUIContext
enabled
- true
to enable the buttonsI_CmsAppUIContext.enableDefaultToolbarButtons(boolean)
public java.lang.String getAppId()
I_CmsAppUIContext
getAppId
in interface I_CmsAppUIContext
I_CmsAppUIContext.getAppId()
public void hideToolbar()
I_CmsAppUIContext
hideToolbar
in interface I_CmsAppUIContext
I_CmsAppUIContext.hideToolbar()
public void removeToolbarButton(com.vaadin.ui.Component button)
I_CmsAppUIContext
removeToolbarButton
in interface I_CmsAppUIContext
button
- the button to removeI_CmsAppUIContext.removeToolbarButton(com.vaadin.ui.Component)
public void setAppContent(com.vaadin.ui.Component appContent)
setAppContent
in interface I_CmsAppUIContext
appContent
- the app contentpublic void setAppInfo(com.vaadin.ui.Component infoContent)
I_CmsAppUIContext
setAppInfo
in interface I_CmsAppUIContext
infoContent
- the info componentI_CmsAppUIContext.setAppInfo(com.vaadin.ui.Component)
public void setAppTitle(java.lang.String title)
I_CmsAppUIContext
setAppTitle
in interface I_CmsAppUIContext
title
- the app titleI_CmsAppUIContext.setAppTitle(java.lang.String)
public void setMenuDialogContext(I_CmsDialogContext context)
I_CmsAppUIContext
setMenuDialogContext
in interface I_CmsAppUIContext
context
- the dialog contextI_CmsAppUIContext.setMenuDialogContext(org.opencms.ui.I_CmsDialogContext)
public void showInfoArea(boolean show)
I_CmsAppUIContext
showInfoArea
in interface I_CmsAppUIContext
show
- true
to show the infoI_CmsAppUIContext.showInfoArea(boolean)
public void showToolbar()
I_CmsAppUIContext
showToolbar
in interface I_CmsAppUIContext
I_CmsAppUIContext.showToolbar()
public void updateOnChange()
I_CmsAppUIContext
updateOnChange
in interface I_CmsAppUIContext
I_CmsAppUIContext.updateOnChange()
public void updateUserInfo()
I_CmsAppUIContext
updateUserInfo
in interface I_CmsAppUIContext
I_CmsAppUIContext.updateUserInfo()