public class CmsPropertyDialogExtension extends com.vaadin.server.AbstractExtension implements I_CmsPropertyServerRpc
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 |
|---|
CmsPropertyDialogExtension(com.vaadin.ui.UI ui,
I_CmsUpdateListener<java.lang.String> updateListener)
Creates a new instance and binds it to a UI instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEdit(CmsUUID id)
Checks if the user can edit the resource with the given id.
|
void |
editProperties(CmsUUID structureId,
java.util.List<CmsUUID> allIds,
boolean editName)
Open property editor for the resource with the given structure id.
|
void |
editPropertiesForNewResource(CmsNewResourceBuilder builder)
Opens the property dialog for a resource to be created with the 'New' dialog.
|
void |
onClose(long delayMillis)
Disposes of the extension, and tells the server which resources have changed.
|
void |
removeExtension()
Removes the extension on the server side.
|
void |
requestNextFile(int offset)
Requests the id of the next file.
|
void |
savePropertiesForNewResource(java.lang.String data)
Saves the properties for a new resource.
|
extend, getParent, getSupportedParentType, remove, setParentaddAttachListener, 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, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic CmsPropertyDialogExtension(com.vaadin.ui.UI ui, I_CmsUpdateListener<java.lang.String> updateListener)
ui - the UI to bind this extension toupdateListener - the update listenerpublic void editProperties(CmsUUID structureId, java.util.List<CmsUUID> allIds, boolean editName)
structureId - the structure id of a resourceallIds - structure ids of resources for the prev/next navigationeditName - controls whether the file name should be editablepublic void editPropertiesForNewResource(CmsNewResourceBuilder builder)
builder - the resource builder used by the 'New' dialog to create the resourcepublic void onClose(long delayMillis)
I_CmsPropertyServerRpconClose in interface I_CmsPropertyServerRpcdelayMillis - time to delay the RPC (for allowing short background operations to finish)I_CmsPropertyServerRpc.onClose(long)public void removeExtension()
I_CmsPropertyServerRpcremoveExtension in interface I_CmsPropertyServerRpcI_CmsPropertyServerRpc.removeExtension()public void requestNextFile(int offset)
I_CmsPropertyServerRpcrequestNextFile in interface I_CmsPropertyServerRpcoffset - should be +1 for the next file, or -1 for the previous fileI_CmsPropertyServerRpc.requestNextFile(int)public void savePropertiesForNewResource(java.lang.String data)
I_CmsPropertyServerRpcsavePropertiesForNewResource in interface I_CmsPropertyServerRpcdata - the serialized property data (CmsPropertyChangeSet)I_CmsPropertyServerRpc.savePropertiesForNewResource(java.lang.String)