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:
HierarchicalDataCommunicatorConnector
public class DataCommunicatorConnector extends AbstractExtensionConnector
A connector for DataCommunicator class.- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDataCommunicatorConnector.VaadinDataSourceClient-sideDataSourceimplementation to be used withDataCommunicator.
-
Constructor Summary
Constructors Constructor Description DataCommunicatorConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidextend(ServerConnector target)Called when the extension is attached to its parent.DataCommunicatorStategetState()Returns the shared state object for this connector.protected voidonRowDataUpdate(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:AbstractExtensionConnectorCalled 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:
extendin 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 data- Since:
- 8.1
-
getState
public DataCommunicatorState getState()
Description copied from class:AbstractConnectorReturns the shared state object for this connector. Override this method to define the shared state type for your connector.- Specified by:
getStatein interfaceServerConnector- Overrides:
getStatein classAbstractConnector- Returns:
- the current shared state (never null)
-
-