com.vaadin.client.connectors.data.
Class DataCommunicatorConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.extensions.AbstractExtensionConnector
-
- com.vaadin.client.connectors.data.DataCommunicatorConnector
-
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler
,StateChangeEvent.StateChangeHandler
,ServerConnector
,Connector
,Serializable
Direct Known Subclasses:
public class DataCommunicatorConnector extends AbstractExtensionConnector
A connector for DataCommunicator class.
Since:
8.0
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DataCommunicatorConnector.VaadinDataSource
Client-side
DataSource
implementation to be used withDataCommunicator
.
-
Constructor Summary
Constructors Constructor Description DataCommunicatorConnector()
-
Method Summary
All Methods Modifier and Type Method 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(elemental.json.JsonObject newRowData, elemental.json.JsonObject oldRowData)
Called row updates from server side.
-
Methods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector
setParent
-
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, 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, updateEnabledState
-
-
-
-
Method Detail
-
extend
protected void extend(ServerConnector target)
Description copied from class:
AbstractExtensionConnector
Called when the extension is attached to its parent. This method is only called once as an extension cannot be moved from one parent to another.
Specified by:
extend
in classAbstractExtensionConnector
Parameters:
target
- The connector this extension extends
-
onRowDataUpdate
protected void onRowDataUpdate(elemental.json.JsonObject newRowData, elemental.json.JsonObject oldRowData)
Called row updates from server side.
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.
Parameters:
newRowData
- the new row dataoldRowData
- the previous row dataSince:
8.1
-
getState
public DataCommunicatorState getState()
Description copied from class:
AbstractConnector
Returns the shared state object for this connector. Override this method to define the shared state type for your connector.
Specified by:
getState
in interfaceServerConnector
Overrides:
getState
in classAbstractConnector
Returns:
the current shared state (never null)
-
-