Class CmsWindowCloseExtension
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.server.AbstractExtension
-
- org.opencms.ui.components.extensions.CmsWindowCloseExtension
-
- All Implemented Interfaces:
com.vaadin.event.MethodEventSource
,com.vaadin.server.ClientConnector
,com.vaadin.server.Extension
,com.vaadin.shared.communication.ServerRpc
,com.vaadin.shared.Connector
,java.io.Serializable
,I_CmsWindowCloseServerRpc
public class CmsWindowCloseExtension extends com.vaadin.server.AbstractExtension implements I_CmsWindowCloseServerRpc
Makes window close events available on the server side.- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description CmsWindowCloseExtension(com.vaadin.ui.UI ui)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWindowCloseListener(I_CmsWindowCloseListener listener)
Adds a window close listener.void
removeWindowCloseListener(I_CmsWindowCloseListener listener)
Removes the given window close listener.void
windowClosed(java.lang.String syncToken)
Executed on window close.p>-
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, 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
-
-
-
-
Constructor Detail
-
CmsWindowCloseExtension
public CmsWindowCloseExtension(com.vaadin.ui.UI ui)
Constructor.- Parameters:
ui
- the UI to extend
-
-
Method Detail
-
addWindowCloseListener
public void addWindowCloseListener(I_CmsWindowCloseListener listener)
Adds a window close listener.- Parameters:
listener
- the listener to add
-
removeWindowCloseListener
public void removeWindowCloseListener(I_CmsWindowCloseListener listener)
Removes the given window close listener.- Parameters:
listener
- the listener to remove
-
windowClosed
public void windowClosed(java.lang.String syncToken)
Description copied from interface:I_CmsWindowCloseServerRpc
Executed on window close.p>- Specified by:
windowClosed
in interfaceI_CmsWindowCloseServerRpc
- Parameters:
syncToken
- the sync token is used to trigger synchronous rpc requests, it's value needs to be set to org.opencms.gwt.client.rpc.CmsRpcAction.SYNC_TOKEN- See Also:
I_CmsWindowCloseServerRpc.windowClosed(java.lang.String)
-
-