public interface I_CmsDialogContext
Modifier and Type | Interface and Description |
---|---|
static class |
I_CmsDialogContext.ContextType
The available context types.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void error(java.lang.Throwable error)
error
- the error which occcurredvoid finish(CmsProject project, java.lang.String siteRoot)
Call when current project and or site have been changed.
project
- changed projectsiteRoot
- changed site rootvoid finish(java.util.Collection<CmsUUID> result)
result
- the list of structure ids of changed resourcesvoid focus(CmsUUID structureId)
structureId
- the structure id of a resourcejava.util.List<CmsUUID> getAllStructureIdsInView()
java.lang.String getAppId()
CmsObject getCms()
I_CmsDialogContext.ContextType getContextType()
May be used for visibility evaluation.
java.util.List<CmsResource> getResources()
void navigateTo(java.lang.String appId)
appId
- the app idvoid onViewChange()
void reload()
void setWindow(com.vaadin.ui.Window window)
window
- the current dialog windowvoid start(java.lang.String title, com.vaadin.ui.Component dialog)
title
- the title to displaydialog
- the dialog main widgetvoid start(java.lang.String title, com.vaadin.ui.Component dialog, CmsBasicDialog.DialogWidth width)
title
- the title to displaydialog
- the dialog main widgetwidth
- the preferred width for the dialogvoid updateUserInfo()