Class CmsGwtDialogExtension
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
org.opencms.ui.components.extensions.CmsGwtDialogExtension
- All Implemented Interfaces:
com.vaadin.event.MethodEventSource,com.vaadin.server.ClientConnector,com.vaadin.server.Extension,com.vaadin.shared.communication.ServerRpc,com.vaadin.shared.Connector,Serializable,I_CmsGwtDialogServerRpc
public class CmsGwtDialogExtension
extends com.vaadin.server.AbstractExtension
implements I_CmsGwtDialogServerRpc
Extension used to open existing GWT based dialogs (from ADE, etc.) from the server side, for use in context menu actions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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 Summary
ConstructorsConstructorDescriptionCmsGwtDialogExtension(com.vaadin.ui.UI ui, I_CmsUpdateListener<String> updateListener) Creates a new instance and binds it to a UI instance. -
Method Summary
Modifier and TypeMethodDescriptionvoideditPointer(CmsResource resource) Opens the dialog for editing pointer resources.voideditProperties(CmsUUID structureId, boolean editName) Open property editor for the resource with the given structure id.protected CmsPublishDatagetPublishData(CmsProject project, List<CmsResource> directPublishResources) Gets the publish data for the given resources.protected StringSerializes a CmsPublishData object into string form using the GWT serialization.voidonClose(boolean reinitUI) Disposes of the extension and tells the server whether to re-init the UI.voidDisposes of the extension, and tells the server which resources have changed.voidopenCategories(CmsResource resource) Opens the categories dialog for the given resource.voidopenContentEditor(String structureId, String sitePath) Opens the content editor in a dialog for editing the provided file.voidopenGalleryDialog(CmsResource resource) Opens the gallery dialog for the given gallery folder.voidopenInfoDialog(CmsResource resource, String startTab) Opens the resource info dialog.voidopenLockReport(CmsResource resource) Opens the lock report for the given resource.protected voidopenPublishDailog(CmsProject project, List<CmsResource> directPublishResources) Opens the publish dialog for the given project.voidOpens the publish dialog.voidopenPublishDialog(List<CmsResource> resources) Tells the client to open the publish dialog for the given resources.voidopenPublishDialog(CmsProject project) Opens the publish dialog for the given project.voidopenReplaceDialog(CmsUUID structureId) Opens the 'Replace' dialog for the resource with the given structure id.voidShows the OpenCms about dialog.voidshowPreview(CmsUUID id, Integer version, CmsHistoryVersion.OfflineOnline offlineOnline) Shows the prewview dialog for a given resource and version.voidShows the user preferences.Methods inherited from class com.vaadin.server.AbstractExtension
extend, getParent, getSupportedParentType, remove, setParentMethods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Constructor Details
-
CmsGwtDialogExtension
Creates a new instance and binds it to a UI instance.- Parameters:
ui- the UI to bind this extension toupdateListener- the update listener
-
-
Method Details
-
editPointer
Opens the dialog for editing pointer resources.- Parameters:
resource- the pointer resource
-
editProperties
Open property editor for the resource with the given structure id.- Parameters:
structureId- the structure id of a resourceeditName- controls whether the file name should be editable
-
onClose
Description copied from interface:I_CmsGwtDialogServerRpcDisposes of the extension and tells the server whether to re-init the UI.- Specified by:
onClosein interfaceI_CmsGwtDialogServerRpc- Parameters:
reinitUI-trueto reinit the UI- See Also:
-
onClose
Description copied from interface:I_CmsGwtDialogServerRpcDisposes of the extension, and tells the server which resources have changed.- Specified by:
onClosein interfaceI_CmsGwtDialogServerRpc- Parameters:
changedStructureIds- the structure ids of changed resources, as stringsdelayMillis- time to delay the RPC (for allowing short background operations to finish)- See Also:
-
openCategories
Opens the categories dialog for the given resource.- Parameters:
resource- the resource
-
openContentEditor
Opens the content editor in a dialog for editing the provided file.- Parameters:
structureId- structure id of the file to edit.sitePath- site path of the file to edit.
-
openGalleryDialog
Opens the gallery dialog for the given gallery folder.- Parameters:
resource- the gallery folder resource
-
openInfoDialog
Opens the resource info dialog.- Parameters:
resource- the resourcestartTab- the start tab id
-
openLockReport
Opens the lock report for the given resource.- Parameters:
resource- the resource for which to display the lock report
-
openPublishDialog
Opens the publish dialog. -
openPublishDialog
Opens the publish dialog for the given project.- Parameters:
project- the project for which to open the dialog
-
openPublishDialog
Tells the client to open the publish dialog for the given resources.- Parameters:
resources- the resources for which to open the publish dialog.
-
openReplaceDialog
Opens the 'Replace' dialog for the resource with the given structure id.- Parameters:
structureId- the structure id
-
showAbout
Shows the OpenCms about dialog. -
showUserPreferences
Shows the user preferences. -
getPublishData
protected CmsPublishData getPublishData(CmsProject project, List<CmsResource> directPublishResources) Gets the publish data for the given resources.- Parameters:
project- the project for which to open the dialogdirectPublishResources- the resources to publish- Returns:
- the publish data for the resources
-
openPublishDailog
Opens the publish dialog for the given project.- Parameters:
project- the project for which to open the dialogdirectPublishResources- the resources for which to open the publish dialog.
-