public interface Extension extends ClientConnector
An extension can only be attached once. It is not supported to move an extension from one target to another.
Extensions can use shared state and RPC in the same way as components.
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Modifier and Type | Method and Description |
---|---|
void |
remove()
Remove this extension from its target.
|
void |
setParent(ClientConnector parent)
Sets the parent connector of the connector.
|
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
void remove()
void setParent(ClientConnector parent)
ClientConnector.attach()
if the connector
becomes attached to the session.
This method is rarely called directly.
AbstractClientConnector.addExtension(Extension)
is normally used
for adding extensions to a parent and it will call this method
implicitly.
parent
- the parent connectorIllegalStateException
- if a parent is given even though the connector already has a
parentCopyright © 2018 Vaadin Ltd. All rights reserved.