Package com.vaadin.data.provider
Class DataCommunicator.SimpleDataRequestRpc
- java.lang.Object
-
- com.vaadin.data.provider.DataCommunicator.SimpleDataRequestRpc
-
- All Implemented Interfaces:
ServerRpc,DataRequestRpc,Serializable
- Enclosing class:
- DataCommunicator<T>
protected class DataCommunicator.SimpleDataRequestRpc extends Object implements DataRequestRpc
Simple implementation of collection data provider communication. All data is sent by server automatically and no data is requested by client.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleDataRequestRpc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddropRows(elemental.json.JsonArray keys)Informs the server that items have been dropped from the client cache.voidrequestRows(int firstRowIndex, int numberOfRows, int firstCachedRowIndex, int cacheSize)Request rows from the server.
-
-
-
Method Detail
-
requestRows
public void requestRows(int firstRowIndex, int numberOfRows, int firstCachedRowIndex, int cacheSize)Description copied from interface:DataRequestRpcRequest rows from the server.- Specified by:
requestRowsin interfaceDataRequestRpc- Parameters:
firstRowIndex- the index of the first requested rownumberOfRows- the number of requested rowsfirstCachedRowIndex- the index of the first cached rowcacheSize- the number of cached rows
-
dropRows
public void dropRows(elemental.json.JsonArray keys)
Description copied from interface:DataRequestRpcInforms the server that items have been dropped from the client cache.- Specified by:
dropRowsin interfaceDataRequestRpc- Parameters:
keys- array of dropped keys mapping to items
-
-