|
||||||||||
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. |
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, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, 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)
ClientConnector
This method automatically calls ClientConnector.attach()
if the connector
becomes attached to the application, regardless of whether it was
attached previously. Conversely, if the parent is null
and the
connector is attached to the application, ClientConnector.detach()
is called for
the connector.
This method is rarely called directly. One of the
ComponentContainer.addComponent(Component)
or
AbstractClientConnector.addExtension(Extension)
methods are
normally used for adding connectors to a parent and they will call this
method implicitly.
It is not possible to change the parent without first setting the parent
to null
.
setParent
in interface ClientConnector
setParent
in class AbstractClientConnector
parent
- the parent connector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |