Package org.opencms.ui.components
Class CmsBasicDialog
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.AbstractLayout
com.vaadin.ui.AbstractOrderedLayout
com.vaadin.ui.VerticalLayout
org.opencms.ui.components.CmsBasicDialog
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier
,com.vaadin.event.LayoutEvents.LayoutClickNotifier
,com.vaadin.event.MethodEventSource
,com.vaadin.server.ClientConnector
,com.vaadin.server.Sizeable
,com.vaadin.shared.Connector
,com.vaadin.ui.Component
,com.vaadin.ui.ComponentContainer
,com.vaadin.ui.HasComponents
,com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
,com.vaadin.ui.Layout
,com.vaadin.ui.Layout.AlignmentHandler
,com.vaadin.ui.Layout.MarginHandler
,com.vaadin.ui.Layout.SpacingHandler
,Serializable
,Iterable<com.vaadin.ui.Component>
- Direct Known Subclasses:
A_CmsEditUserGroupRoleDialog
,A_CmsImportExportUserDialog
,A_CmsSelectResourceTypeDialog
,CmsAddExportResourcesDialog
,CmsAdditionalInfosDialog
,CmsAddPropertyDefinitionDialog
,CmsAvailabilityDialog
,CmsCategorySelectDialog
,CmsChangePasswordDialog
,CmsConfirmationDialog
,CmsConfirmSimpleFlushDialog
,CmsCopyMoveDialog
,CmsCopyPageDialog
,CmsCopyToProjectDialog
,CmsDataViewDialog
,CmsDbSynchDialog
,CmsDeleteDialog
,CmsDeleteMultiplePrincipalDialog
,CmsDeleteOUDialog
,CmsDeleteSiteDialog
,CmsEditFavoriteDialog
,CmsEditLoginView
,CmsEditModuleForm
,CmsEditProjectForm
,CmsEditResourceTypeDialog
,CmsEditSiteForm
,CmsErrorDialog
,CmsExportSiteForm
,CmsExportThreadDialog
,CmsFavoriteDialog
,CmsFlexCacheCleanDialog
,CmsFlushButtonHolderDialog
,CmsGalleryOptimizeDialog
,CmsGeneratePasswordDialog
,CmsGitActionResultPanel
,CmsGlobalForm
,CmsGroupEditDialog
,CmsHistoryDialog
,CmsImageCacheCleanDialog
,CmsImportTabForm
,CmsJobEditView
,CmsKillSessionDialog
,CmsLockedResourcesList
,CmsLogDownloadDialog
,CmsLogFileViewSettings
,CmsMacroResolverDialog
,CmsModuleExportDialog
,CmsModuleInfoDialog
,CmsMoveResourceTypeDialog
,CmsMoveUserToOU
,CmsNewElementDialog
,CmsNewResourceTypeDialog
,CmsOptionDialog
,CmsOUEditDialog
,CmsPermissionDialog
,CmsPrincipalSelectDialog
,CmsProjectSelectDialog
,CmsPropertyDeleteDialog
,CmsPublishScheduledDialog
,CmsReindexDialog
,CmsReportDialog
,CmsResourceListDialog
,CmsResourceSelectDialogContents
,CmsRestoreDeletedDialog
,CmsSecondFactorDialog
,CmsSecondFactorSetupDialog
,CmsSecureExportDialog
,CmsSendBroadcastDialog
,CmsShellScriptReportDialog
,CmsShowReportDialog
,CmsShowResourcesDialog
,CmsSiteSelectDialog
,CmsSiteSelectDialog
,CmsSourceDialog
,CmsSqlConsoleResultsForm
,CmsTemplateMapperDialog
,CmsTouchDialog
,CmsUndeleteDialog
,CmsUndoDialog
,CmsUnlinkDialog
,CmsUserDataDialog
,CmsUserEditDialog
,CmsUserInfoDialog
,CmsVariationsDialog
,CmsWebServerConfigForm
Basic dialog class with a content panel and button bar.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The available window widths.Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
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
Nested classes/interfaces inherited from interface com.vaadin.ui.Layout
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
-
Field Summary
Fields inherited from class com.vaadin.ui.AbstractOrderedLayout
ALIGNMENT_DEFAULT, components
Fields inherited from class com.vaadin.ui.AbstractComponent
DESIGN_ATTR_PLAIN_TEXT
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addButton
(com.vaadin.ui.Component button) Adds a button to the button bar.void
addButton
(com.vaadin.ui.Component button, boolean right) Adds a button to the button bar.com.vaadin.ui.Button
Creates an 'Cancel' button.com.vaadin.ui.Button
Creates an 'Cancel' button.com.vaadin.ui.Button
Creates an 'OK' button.com.vaadin.ui.Panel
createResourceListPanel
(String caption, List<CmsResource> resources) Creates a resource list panel.com.vaadin.ui.Panel
createResourceListPanelDirectly
(String caption, List<CmsResourceInfo> resourceInfo) Creates a resource list panel.void
displayResourceInfo
(List<CmsResource> resources) For a given list of resources, displays the resource info panels.void
displayResourceInfo
(List<CmsResource> resources, String messageKey) For a given list of resources, displays the resource info panels with panel messages.void
displayResourceInfo
(CmsResource resource) For a given resource, display the resource info panel.void
displayResourceInfoDirectly
(List<CmsResourceInfo> resourceInfos) Displays the resource info panel.protected void
Adds the max height extension to the dialog panel.Gets the resources for which the resource info boxes should be displayed.void
initActionHandler
(com.vaadin.ui.Window window) Initializes action handler.static com.vaadin.ui.Window
Initializes the dialog window.static com.vaadin.ui.Window
Initializes the dialog window.void
readDesign
(org.jsoup.nodes.Element design, com.vaadin.ui.declarative.DesignContext designContext) void
setAbove
(com.vaadin.ui.Component aboveContent) Sets the content to be displayed above the main content.void
setActionHandler
(com.vaadin.event.Action.Handler actionHandler) Sets the shortcut action handler.void
setBelow
(com.vaadin.ui.Component belowContent) Sets the content to be displayed below the main content.void
setContent
(com.vaadin.ui.Component content) Sets the content.void
setContentMinHeight
(int height) Sets the height of the content to a given min Height or 100%.void
setContentVisibility
(boolean visible) Sets the visibility of the content panel.void
setWindowMinFullHeight
(int minHeight) Sets the window which contains this dialog to full height with a given minimal height in pixel.Methods inherited from class com.vaadin.ui.VerticalLayout
addComponentsAndExpand, getState, getState
Methods inherited from class com.vaadin.ui.AbstractOrderedLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
Methods inherited from class com.vaadin.ui.AbstractLayout
readMargin, writeMargin
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, 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, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
Methods inherited from interface com.vaadin.ui.Component
addListener, 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, setVisible
Methods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
Methods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
-
Constructor Details
-
CmsBasicDialog
public CmsBasicDialog()Creates new instance.
-
-
Method Details
-
prepareWindow
Initializes the dialog window.- Returns:
- the window to be used by dialogs
-
prepareWindow
Initializes the dialog window.- Parameters:
width
- the dialog width- Returns:
- the window to be used by dialogs
-
addButton
Adds a button to the button bar.- Parameters:
button
- the button to add
-
addButton
Adds a button to the button bar.- Parameters:
button
- the button to addright
- to align the button right
-
createButtonCancel
Creates an 'Cancel' button.- Returns:
- the button
-
createButtonClose
Creates an 'Cancel' button.- Returns:
- the button
-
createButtonOK
Creates an 'OK' button.- Returns:
- the button
-
createResourceListPanel
Creates a resource list panel.- Parameters:
caption
- the caption to useresources
- the resources- Returns:
- the panel
-
createResourceListPanelDirectly
public com.vaadin.ui.Panel createResourceListPanelDirectly(String caption, List<CmsResourceInfo> resourceInfo) Creates a resource list panel.- Parameters:
caption
- the caption to useresourceInfo
- the resource-infos- Returns:
- the panel
-
displayResourceInfo
For a given resource, display the resource info panel.- Parameters:
resource
- the resource
-
displayResourceInfo
For a given list of resources, displays the resource info panels.- Parameters:
resources
- the resources
-
displayResourceInfo
For a given list of resources, displays the resource info panels with panel messages.- Parameters:
resources
- to show info formessageKey
- of the panel
-
displayResourceInfoDirectly
Displays the resource info panel.- Parameters:
resourceInfos
- to display
-
getInfoResources
Gets the resources for which the resource info boxes should be displayed.- Returns:
- the resource info resources
-
initActionHandler
Initializes action handler.- Parameters:
window
- the parent window
-
readDesign
public void readDesign(org.jsoup.nodes.Element design, com.vaadin.ui.declarative.DesignContext designContext) - Specified by:
readDesign
in interfacecom.vaadin.ui.Component
- Overrides:
readDesign
in classcom.vaadin.ui.AbstractOrderedLayout
- See Also:
-
AbstractOrderedLayout.readDesign(org.jsoup.nodes.Element, com.vaadin.ui.declarative.DesignContext)
-
setAbove
Sets the content to be displayed above the main content.- Parameters:
aboveContent
- the above content
-
setActionHandler
Sets the shortcut action handler.Set this before opening the window, so it will be initialized properly.
- Parameters:
actionHandler
- the action handler
-
setBelow
Sets the content to be displayed below the main content.- Parameters:
belowContent
- the below content
-
setContent
Sets the content.- Parameters:
content
- the content widget
-
setContentMinHeight
Sets the height of the content to a given min Height or 100%.- Parameters:
height
- minimal height.
-
setContentVisibility
Sets the visibility of the content panel.- Parameters:
visible
- visibility of the content.
-
setWindowMinFullHeight
Sets the window which contains this dialog to full height with a given minimal height in pixel.- Parameters:
minHeight
- minimal height in pixel
-
enableMaxHeight
Adds the max height extension to the dialog panel.
-