public class DataCommunicatorConnector extends AbstractExtensionConnector
| Modifier and Type | Class and Description |
|---|---|
class |
DataCommunicatorConnector.VaadinDataSource
Client-side
DataSource implementation to be used with
DataCommunicator. |
| Constructor and Description |
|---|
DataCommunicatorConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
extend(ServerConnector target)
Called when the extension is attached to its parent.
|
DataCommunicatorState |
getState()
Returns the shared state object for this connector.
|
protected void |
onRowDataUpdate(JsonObject newRowData,
JsonObject oldRowData)
Called row updates from server side.
|
setParentaddStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, isEnabled, onStateChanged, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setTag, unregisterRpc, updateEnabledStateprotected void extend(ServerConnector target)
AbstractExtensionConnectorextend in class AbstractExtensionConnectortarget - The connector this extension extendsprotected void onRowDataUpdate(JsonObject newRowData, JsonObject oldRowData)
This method exists for making it possible to copy data from the old object to the new one, if e.g. some data is not available in the server side when doing updates and would be missed otherwise.
newRowData - the new row dataoldRowData - the previous row datapublic DataCommunicatorState getState()
AbstractConnectorgetState in interface ServerConnectorgetState in class AbstractConnectorCopyright © 2018 Vaadin Ltd. All rights reserved.