Class CmsPropertyDialogExtension
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
org.opencms.ui.components.extensions.CmsPropertyDialogExtension
- 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_CmsPropertyServerRpc
public class CmsPropertyDialogExtension
extends com.vaadin.server.AbstractExtension
implements I_CmsPropertyServerRpc
Extension used for the GWT-based property dialog called from the workplace.
This keeps track of the list of resources which were visible when the property dialog was opened, allowing
the user to navigate through the list with prev/next buttons.
- 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
ConstructorsConstructorDescriptionCmsPropertyDialogExtension(com.vaadin.ui.UI ui, I_CmsUpdateListener<String> updateListener) Creates a new instance and binds it to a UI instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if the user can edit the resource with the given id.voideditProperties(CmsUUID structureId, List<CmsUUID> allIds, boolean editName) Open property editor for the resource with the given structure id.voidOpens the property dialog for a resource to be created with the 'New' dialog.voidonClose(long delayMillis) Disposes of the extension, and tells the server which resources have changed.voidRemoves the extension on the server side.voidrequestNextFile(int offset) Requests the id of the next file.voidSaves the properties for a new resource.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
-
CmsPropertyDialogExtension
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
-
editProperties
Open property editor for the resource with the given structure id.- Parameters:
structureId- the structure id of a resourceallIds- structure ids of resources for the prev/next navigationeditName- controls whether the file name should be editable
-
editPropertiesForNewResource
Opens the property dialog for a resource to be created with the 'New' dialog.- Parameters:
builder- the resource builder used by the 'New' dialog to create the resource
-
onClose
Description copied from interface:I_CmsPropertyServerRpcDisposes of the extension, and tells the server which resources have changed.- Specified by:
onClosein interfaceI_CmsPropertyServerRpc- Parameters:
delayMillis- time to delay the RPC (for allowing short background operations to finish)- See Also:
-
removeExtension
Description copied from interface:I_CmsPropertyServerRpcRemoves the extension on the server side.- Specified by:
removeExtensionin interfaceI_CmsPropertyServerRpc- See Also:
-
requestNextFile
Description copied from interface:I_CmsPropertyServerRpcRequests the id of the next file.- Specified by:
requestNextFilein interfaceI_CmsPropertyServerRpc- Parameters:
offset- should be +1 for the next file, or -1 for the previous file- See Also:
-
savePropertiesForNewResource
Description copied from interface:I_CmsPropertyServerRpcSaves the properties for a new resource.- Specified by:
savePropertiesForNewResourcein interfaceI_CmsPropertyServerRpc- Parameters:
data- the serialized property data (CmsPropertyChangeSet)- See Also:
-
canEdit
Checks if the user can edit the resource with the given id.- Parameters:
id- a structure id- Returns:
- true if the user can edit the file
-