Class CmsUploadAreaExtension
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
org.opencms.ui.components.extensions.CmsUploadAreaExtension
- 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_CmsUploadRpc
public class CmsUploadAreaExtension
extends com.vaadin.server.AbstractExtension
implements I_CmsUploadRpc
Extends the given component to be an upload drop area.
- 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
ConstructorDescriptionCmsUploadAreaExtension
(com.vaadin.ui.AbstractComponent component) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a window close listener.protected CmsUploadAreaState
getState()
void
onUploadFinished
(List<String> files) Called once the upload is finished.void
Removes the given window close listener.void
setTargetFolder
(String targetFolder) Sets the upload target folder.Methods inherited from class com.vaadin.server.AbstractExtension
extend, getParent, getSupportedParentType, remove, setParent
Methods 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, 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, updateDiffstate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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, setErrorHandler
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Constructor Details
-
CmsUploadAreaExtension
Constructor.- Parameters:
component
- the component to extend
-
-
Method Details
-
addUploadListener
Adds a window close listener.- Parameters:
listener
- the listener to add
-
onUploadFinished
Description copied from interface:I_CmsUploadRpc
Called once the upload is finished.- Specified by:
onUploadFinished
in interfaceI_CmsUploadRpc
- Parameters:
files
- the uploaded file root paths- See Also:
-
removeUploadListener
Removes the given window close listener.- Parameters:
listener
- the listener to remove
-
setTargetFolder
Sets the upload target folder.- Parameters:
targetFolder
- the folder root path
-
getState
- Overrides:
getState
in classcom.vaadin.server.AbstractClientConnector
- See Also:
-
AbstractClientConnector.getState()
-