|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
public abstract class AbstractExtension
An extension is an entity that is attached to a Component or another Extension and independently communicates between client and server.
Extensions can use shared state and RPC in the same way as components.
AbstractExtension adds a mechanism for adding the extension to any Connector (extend). To let the Extension determine what kind target it can be added to, the extend method is declared as protected.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
Constructor Summary | |
---|---|
AbstractExtension()
|
Method Summary | |
---|---|
protected void |
extend(AbstractClientConnector target)
Add this extension to the target connector. |
ClientConnector |
getParent()
|
protected java.lang.Class<? extends ClientConnector> |
getSupportedParentType()
Gets a type that the parent must be an instance of. |
void |
remove()
Remove this extension from its target. |
void |
setParent(ClientConnector parent)
Sets the parent connector of the connector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, 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 Detail |
---|
public AbstractExtension()
Method Detail |
---|
protected java.lang.Class<? extends ClientConnector> getSupportedParentType()
protected void extend(AbstractClientConnector target)
target
- the connector to attach this extension topublic void remove()
Extension
remove
in interface Extension
public void setParent(ClientConnector parent)
Extension
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.
setParent
in interface Extension
parent
- the parent connectorpublic ClientConnector getParent()
getParent
in interface ClientConnector
getParent
in interface com.vaadin.shared.Connector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |