public class CmsEmbeddedDialogContext extends com.vaadin.server.AbstractExtension implements I_CmsDialogContext
I_CmsDialogContext.ContextType
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Constructor and Description |
---|
CmsEmbeddedDialogContext(java.lang.String appId,
I_CmsDialogContext.ContextType contextType,
java.util.List<CmsResource> resources)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
closeWindow(boolean keepFrame)
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.
|
protected I_CmsEmbeddedDialogClientRPC |
getClientRPC()
Returns the client RPC.
|
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 |
leavePage(java.lang.String uri)
Leaves page by navigating to given URI.
|
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 |
setPrincipal(java.lang.String principalName)
Sets the principal.
|
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.
|
extend, getParent, getSupportedParentType, remove, setParent
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public CmsEmbeddedDialogContext(java.lang.String appId, I_CmsDialogContext.ContextType contextType, java.util.List<CmsResource> resources)
appId
- the app idcontextType
- the context typeresources
- the resourcespublic void closeWindow(boolean keepFrame)
keepFrame
- true
to keep the embedded iFrame.public 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 void focus(CmsUUID structureId)
I_CmsDialogContext
focus
in interface I_CmsDialogContext
structureId
- the structure id of a resourceI_CmsDialogContext.focus(org.opencms.util.CmsUUID)
public java.util.List<CmsUUID> getAllStructureIdsInView()
I_CmsDialogContext
getAllStructureIdsInView
in interface I_CmsDialogContext
I_CmsDialogContext.getAllStructureIdsInView()
public java.lang.String getAppId()
I_CmsDialogContext
getAppId
in interface I_CmsDialogContext
I_CmsDialogContext.getAppId()
public CmsObject getCms()
I_CmsDialogContext
getCms
in interface I_CmsDialogContext
I_CmsDialogContext.getCms()
public I_CmsDialogContext.ContextType getContextType()
I_CmsDialogContext
May be used for visibility evaluation.
getContextType
in interface I_CmsDialogContext
I_CmsDialogContext.getContextType()
public java.util.List<CmsResource> getResources()
I_CmsDialogContext
getResources
in interface I_CmsDialogContext
I_CmsDialogContext.getResources()
public void leavePage(java.lang.String uri)
uri
- the URI to navigate topublic void navigateTo(java.lang.String appId)
I_CmsDialogContext
navigateTo
in interface I_CmsDialogContext
appId
- the app idI_CmsDialogContext.navigateTo(java.lang.String)
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 setPrincipal(java.lang.String principalName)
principalName
- the principal namepublic void setWindow(com.vaadin.ui.Window window)
I_CmsDialogContext
setWindow
in interface I_CmsDialogContext
window
- the current dialog windowI_CmsDialogContext.setWindow(com.vaadin.ui.Window)
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 width)
I_CmsDialogContext
start
in interface I_CmsDialogContext
title
- 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_CmsDialogContext
updateUserInfo
in interface I_CmsDialogContext
I_CmsDialogContext.updateUserInfo()
protected I_CmsEmbeddedDialogClientRPC getClientRPC()