public class CmsSitemapTreeController.DialogContext extends java.lang.Object implements I_CmsDialogContext
I_CmsDialogContext.ContextType| Constructor and Description |
|---|
DialogContext(CmsResource resource,
CmsSitemapTreeNode node)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
focus(CmsUUID structureId)
Tell the system that the resource with the given id should be shown somehow.
|
java.util.List<CmsUUID> |
getAllStructureIdsInView()
Gets a list of structure ids of all visible resources, not just the ones selected for the dialog.
|
java.lang.String |
getAppId()
Returns the app id.
|
CmsObject |
getCms()
Gets the CMS context to be used for dialog operations.
|
I_CmsDialogContext.ContextType |
getContextType()
Returns the context type.
|
java.util.List<CmsResource> |
getResources()
Gets the list of resources for which the dialog should be opened.
|
void |
navigateTo(java.lang.String appId)
Navigates to the given app.
|
void |
onViewChange()
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 |
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 width)
Called to start up the dialog with the given main widget and title string.
|
void |
updateUserInfo()
Called when the user info was changed.
|
public DialogContext(CmsResource resource, CmsSitemapTreeNode node)
resource - the resourcenode - the tree nodepublic void closeWindow()
public void error(java.lang.Throwable error)
I_CmsDialogContexterror in interface I_CmsDialogContexterror - the error which occcurredI_CmsDialogContext.error(java.lang.Throwable)public void finish(CmsProject project, java.lang.String siteRoot)
I_CmsDialogContextCall when current project and or site have been changed.
finish in interface I_CmsDialogContextproject - changed projectsiteRoot - changed site rootI_CmsDialogContext.finish(org.opencms.file.CmsProject, java.lang.String)public void finish(java.util.Collection<CmsUUID> result)
I_CmsDialogContextfinish in interface I_CmsDialogContextresult - the list of structure ids of changed resourcesI_CmsDialogContext.finish(java.util.Collection)public void focus(CmsUUID structureId)
I_CmsDialogContextfocus in interface I_CmsDialogContextstructureId - the structure id of a resourceI_CmsDialogContext.focus(org.opencms.util.CmsUUID)public java.util.List<CmsUUID> getAllStructureIdsInView()
I_CmsDialogContextgetAllStructureIdsInView in interface I_CmsDialogContextI_CmsDialogContext.getAllStructureIdsInView()public java.lang.String getAppId()
I_CmsDialogContextgetAppId in interface I_CmsDialogContextI_CmsDialogContext.getAppId()public CmsObject getCms()
I_CmsDialogContextgetCms in interface I_CmsDialogContextI_CmsDialogContext.getCms()public I_CmsDialogContext.ContextType getContextType()
I_CmsDialogContextMay be used for visibility evaluation.
getContextType in interface I_CmsDialogContextI_CmsDialogContext.getContextType()public java.util.List<CmsResource> getResources()
I_CmsDialogContextgetResources in interface I_CmsDialogContextI_CmsDialogContext.getResources()public void navigateTo(java.lang.String appId)
I_CmsDialogContextnavigateTo in interface I_CmsDialogContextappId - the app idI_CmsDialogContext.navigateTo(java.lang.String)public void onViewChange()
I_CmsDialogContextonViewChange in interface I_CmsDialogContextI_CmsDialogContext.onViewChange()public void reload()
I_CmsDialogContextreload in interface I_CmsDialogContextI_CmsDialogContext.reload()public void setWindow(com.vaadin.ui.Window window)
I_CmsDialogContextsetWindow in interface I_CmsDialogContextwindow - the current dialog windowI_CmsDialogContext.setWindow(com.vaadin.ui.Window)public void start(java.lang.String title, com.vaadin.ui.Component dialog)
I_CmsDialogContextstart in interface I_CmsDialogContexttitle - 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 width)
I_CmsDialogContextstart in interface I_CmsDialogContexttitle - the title to displaydialog - the dialog main widgetwidth - the preferred width for the dialogI_CmsDialogContext.start(java.lang.String, com.vaadin.ui.Component, org.opencms.ui.components.CmsBasicDialog.DialogWidth)public void updateUserInfo()
I_CmsDialogContextupdateUserInfo in interface I_CmsDialogContextI_CmsDialogContext.updateUserInfo()