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,CmsPermissionUserListDialog,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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe 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.DetachListenerNested 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.ListenerNested 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.ComponentDetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Layout
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlerNested 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, componentsFields inherited from class com.vaadin.ui.AbstractComponent
DESIGN_ATTR_PLAIN_TEXTFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddButton(com.vaadin.ui.Component button) Adds a button to the button bar.voidaddButton(com.vaadin.ui.Component button, boolean right) Adds a button to the button bar.com.vaadin.ui.ButtonCreates an 'Cancel' button.com.vaadin.ui.ButtonCreates an 'Cancel' button.com.vaadin.ui.ButtonCreates an 'OK' button.com.vaadin.ui.PanelcreateResourceListPanel(String caption, List<CmsResource> resources) Creates a resource list panel.com.vaadin.ui.PanelcreateResourceListPanelDirectly(String caption, List<CmsResourceInfo> resourceInfo) Creates a resource list panel.voiddisplayResourceInfo(List<CmsResource> resources) For a given list of resources, displays the resource info panels.voiddisplayResourceInfo(List<CmsResource> resources, String messageKey) For a given list of resources, displays the resource info panels with panel messages.voiddisplayResourceInfo(CmsResource resource) For a given resource, display the resource info panel.voiddisplayResourceInfoDirectly(List<CmsResourceInfo> resourceInfos) Displays the resource info panel.protected voidAdds the max height extension to the dialog panel.Gets the resources for which the resource info boxes should be displayed.voidinitActionHandler(com.vaadin.ui.Window window) Initializes action handler.static com.vaadin.ui.WindowInitializes the dialog window.static com.vaadin.ui.WindowInitializes the dialog window.voidreadDesign(org.jsoup.nodes.Element design, com.vaadin.ui.declarative.DesignContext designContext) voidsetAbove(com.vaadin.ui.Component aboveContent) Sets the content to be displayed above the main content.voidsetActionHandler(com.vaadin.event.Action.Handler actionHandler) Sets the shortcut action handler.voidsetBelow(com.vaadin.ui.Component belowContent) Sets the content to be displayed below the main content.voidsetContent(com.vaadin.ui.Component content) Sets the content.voidsetContentMinHeight(int height) Sets the height of the content to a given min Height or 100%.voidsetContentVisibility(boolean visible) Sets the visibility of the content panel.voidsetWindowMinFullHeight(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, getStateMethods 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, writeDesignMethods inherited from class com.vaadin.ui.AbstractLayout
readMargin, writeMarginMethods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthMethods 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, setWidthUndefinedMethods 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, updateDiffstateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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, setErrorHandlerMethods 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, setVisibleMethods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsMethods inherited from interface com.vaadin.shared.Connector
getConnectorIdMethods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListenerMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
readDesignin interfacecom.vaadin.ui.Component- Overrides:
readDesignin classcom.vaadin.ui.AbstractOrderedLayout- See Also:
-
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.
-