public abstract class A_CmsDialogContext extends java.lang.Object implements I_CmsDialogContext
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.Window |
m_window
The window used to display the dialog.
|
Modifier | Constructor and Description |
---|---|
protected |
A_CmsDialogContext(I_CmsAppUIContext appContext,
java.util.List<CmsResource> resources)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeWindow()
Closes the dialog window.
|
void |
error(java.lang.Throwable error)
Signals an error which occurred in the dialog.
|
void |
finish(CmsProject project,
java.lang.String siteRoot)
Signals that the dialog has finished.
|
void |
finish(java.util.Collection<CmsUUID> result)
Signals that the dialog has finished.
|
I_CmsAppUIContext |
getAppContext()
Returns the app UI context.
|
CmsObject |
getCms()
Gets the CMS context to be used for dialog operations.
|
java.util.List<CmsResource> |
getResources()
Gets the list of resources for which the dialog should be opened.
|
void |
onViewChange()
Call when the dialog view has changed to re-center the dialog window.
|
void |
reload()
Reloads the UI.
|
void |
start(java.lang.String title,
com.vaadin.ui.Component dialog)
Called to start up the dialog with the given main widget and title string.
|
void |
start(java.lang.String title,
com.vaadin.ui.Component dialog,
CmsBasicDialog.DialogWidth style)
Called to start up the dialog with the given main widget and title string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
focus, getAllStructureIdsInView
protected com.vaadin.ui.Window m_window
protected A_CmsDialogContext(I_CmsAppUIContext appContext, java.util.List<CmsResource> resources)
appContext
- the app contextresources
- the list of resourcespublic void error(java.lang.Throwable error)
I_CmsDialogContext
error
in interface I_CmsDialogContext
error
- the error which occcurredI_CmsDialogContext.error(java.lang.Throwable)
public void finish(CmsProject project, java.lang.String siteRoot)
I_CmsDialogContext
Call when current project and or site have been changed.
finish
in interface I_CmsDialogContext
project
- changed projectsiteRoot
- changed site rootI_CmsDialogContext.finish(org.opencms.file.CmsProject, java.lang.String)
public void finish(java.util.Collection<CmsUUID> result)
I_CmsDialogContext
finish
in interface I_CmsDialogContext
result
- the list of structure ids of changed resourcesI_CmsDialogContext.finish(java.util.Collection)
public I_CmsAppUIContext getAppContext()
I_CmsDialogContext
getAppContext
in interface I_CmsDialogContext
I_CmsDialogContext.getAppContext()
public CmsObject getCms()
I_CmsDialogContext
getCms
in interface I_CmsDialogContext
I_CmsDialogContext.getCms()
public java.util.List<CmsResource> getResources()
I_CmsDialogContext
getResources
in interface I_CmsDialogContext
I_CmsDialogContext.getResources()
public void onViewChange()
I_CmsDialogContext
onViewChange
in interface I_CmsDialogContext
I_CmsDialogContext.onViewChange()
public void reload()
I_CmsDialogContext
reload
in interface I_CmsDialogContext
I_CmsDialogContext.reload()
public void start(java.lang.String title, com.vaadin.ui.Component dialog)
I_CmsDialogContext
start
in interface I_CmsDialogContext
title
- the title to displaydialog
- the dialog main widgetI_CmsDialogContext.start(java.lang.String, com.vaadin.ui.Component)
public void start(java.lang.String title, com.vaadin.ui.Component dialog, CmsBasicDialog.DialogWidth style)
I_CmsDialogContext
start
in interface I_CmsDialogContext
title
- the title to displaydialog
- the dialog main widgetstyle
- the preferred width for the dialogI_CmsDialogContext.start(java.lang.String, com.vaadin.ui.Component)
protected void closeWindow()