Package org.opencms.ui
Class A_CmsDialogContext
java.lang.Object
org.opencms.ui.A_CmsDialogContext
- All Implemented Interfaces:
I_CmsDialogContext
- Direct Known Subclasses:
CmsFileTableDialogContext
,CmsToolBar.ToolbarContext
Abstract dialog context.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.ui.I_CmsDialogContext
I_CmsDialogContext.ContextType
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.ui.Window
The window used to display the dialog.Fields inherited from interface org.opencms.ui.I_CmsDialogContext
ATTR_SITEMAP_CONFIG_RESOURCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
A_CmsDialogContext
(String appId, I_CmsDialogContext.ContextType contextType, List<CmsResource> resources) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Closes the dialog window.void
Signals an error which occurred in the dialog.void
finish
(Collection<CmsUUID> result) Signals that the dialog has finished.void
finish
(CmsProject project, String siteRoot) Signals that the dialog has finished.getAppId()
Returns the app id.getCms()
Gets the CMS context to be used for dialog operations.Returns the context type.Gets the list of resources for which the dialog should be opened.com.vaadin.ui.Window
Returns the window.void
navigateTo
(String appId) Navigates to the given app.void
Call when the dialog view has changed to re-center the dialog window.void
reload()
Reloads the UI.void
setWindow
(com.vaadin.ui.Window window) Sets the current window.void
Called to start up the dialog with the given main widget and title string.void
start
(String title, com.vaadin.ui.Component dialog, CmsBasicDialog.DialogWidth style) Called to start up the dialog with the given main widget and title string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.ui.I_CmsDialogContext
focus, getAllStructureIdsInView, getParameters, updateUserInfo
-
Field Details
-
m_window
The window used to display the dialog.
-
-
Constructor Details
-
A_CmsDialogContext
protected A_CmsDialogContext(String appId, I_CmsDialogContext.ContextType contextType, List<CmsResource> resources) Constructor.- Parameters:
appId
- the app idcontextType
- the context type, to be used for visibility evaluationresources
- the list of resources
-
-
Method Details
-
closeWindow
Closes the dialog window. -
error
Description copied from interface:I_CmsDialogContext
Signals an error which occurred in the dialog.- Specified by:
error
in interfaceI_CmsDialogContext
- Parameters:
error
- the error which occcurred- See Also:
-
finish
Description copied from interface:I_CmsDialogContext
Signals that the dialog has finished.Call when current project and or site have been changed.
- Specified by:
finish
in interfaceI_CmsDialogContext
- Parameters:
project
- changed projectsiteRoot
- changed site root- See Also:
-
finish
Description copied from interface:I_CmsDialogContext
Signals that the dialog has finished.- Specified by:
finish
in interfaceI_CmsDialogContext
- Parameters:
result
- the list of structure ids of changed resources- See Also:
-
getAppId
Description copied from interface:I_CmsDialogContext
Returns the app id.- Specified by:
getAppId
in interfaceI_CmsDialogContext
- Returns:
- the app id
- See Also:
-
getCms
Description copied from interface:I_CmsDialogContext
Gets the CMS context to be used for dialog operations.- Specified by:
getCms
in interfaceI_CmsDialogContext
- Returns:
- the CMS context
- See Also:
-
getContextType
Description copied from interface:I_CmsDialogContext
Returns the context type.May be used for visibility evaluation.
- Specified by:
getContextType
in interfaceI_CmsDialogContext
- Returns:
- the context type
- See Also:
-
getResources
Description copied from interface:I_CmsDialogContext
Gets the list of resources for which the dialog should be opened.- Specified by:
getResources
in interfaceI_CmsDialogContext
- Returns:
- the list of resources
- See Also:
-
getWindow
Returns the window.- Returns:
- the window
-
onViewChange
Description copied from interface:I_CmsDialogContext
Call when the dialog view has changed to re-center the dialog window.- Specified by:
onViewChange
in interfaceI_CmsDialogContext
- See Also:
-
reload
Description copied from interface:I_CmsDialogContext
Reloads the UI.- Specified by:
reload
in interfaceI_CmsDialogContext
- See Also:
-
setWindow
Description copied from interface:I_CmsDialogContext
Sets the current window.- Specified by:
setWindow
in interfaceI_CmsDialogContext
- Parameters:
window
- the current dialog window- See Also:
-
start
Description copied from interface:I_CmsDialogContext
Called to start up the dialog with the given main widget and title string.- Specified by:
start
in interfaceI_CmsDialogContext
- Parameters:
title
- the title to displaydialog
- the dialog main widget- See Also:
-
start
Description copied from interface:I_CmsDialogContext
Called to start up the dialog with the given main widget and title string.- Specified by:
start
in interfaceI_CmsDialogContext
- Parameters:
title
- the title to displaydialog
- the dialog main widgetstyle
- the preferred width for the dialog- See Also:
-