|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.ui.ConnectorTracker
public class ConnectorTracker
A class which takes care of book keeping of ClientConnector
s for a
Root.
Provides getConnector(String)
which can be used to lookup a
connector from its id. This is for framework use only and should not be
needed in applications.
Tracks which ClientConnector
s are dirty so they can be updated to the
client when the following response is sent. A connector is dirty when an
operation has been performed on it on the server and as a result of this
operation new information needs to be sent to its ServerConnector
.
Constructor Summary | |
---|---|
ConnectorTracker(Root root)
Creates a new ConnectorTracker for the given root. |
Method Summary | |
---|---|
void |
cleanConnectorMap()
Cleans the connector map from all connectors that are no longer attached to the application. |
ClientConnector |
getConnector(String connectorId)
Gets a connector by its id. |
Collection<ClientConnector> |
getDirtyConnectors()
Returns a collection of all connectors which have been marked as dirty. |
static Logger |
getLogger()
Gets a logger for this class |
void |
markAllConnectorsClean()
Mark all connectors in this root as clean. |
void |
markAllConnectorsDirty()
Mark all connectors in this root as dirty. |
void |
markClean(ClientConnector connector)
Mark the connector as clean. |
void |
markDirty(ClientConnector connector)
Mark the connector as dirty. |
void |
registerConnector(ClientConnector connector)
Register the given connector. |
void |
unregisterConnector(ClientConnector connector)
Unregister the given connector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectorTracker(Root root)
ConnectorTracker
.
root
- The root to attach to. Cannot be null.Method Detail |
---|
public static Logger getLogger()
public void registerConnector(ClientConnector connector)
The lookup method getConnector(String)
only returns registered
connectors.
connector
- The connector to register.public void unregisterConnector(ClientConnector connector)
The lookup method getConnector(String)
only returns registered
connectors.
connector
- The connector to unregisterpublic ClientConnector getConnector(String connectorId)
connectorId
- The connector id to look for
public void cleanConnectorMap()
public void markDirty(ClientConnector connector)
connector
- The connector that should be marked clean.getDirtyConnectors()
public void markClean(ClientConnector connector)
connector
- The connector that should be marked clean.public void markAllConnectorsDirty()
public void markAllConnectorsClean()
public Collection<ClientConnector> getDirtyConnectors()
The state and pending RPC calls for dirty connectors are sent to the client in the following request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |