public interface DataCommunicatorClientRpc extends ClientRpc
| Modifier and Type | Method and Description |
|---|---|
void |
insertRows(int firstRowIndex,
int count)
Informs that new data has been inserted from the server.
|
void |
removeRows(int firstRowIndex,
int count)
Informs that the server has removed data.
|
void |
reset(int size)
Informs the client-side DataSource that all data has been invalidated.
|
void |
setData(int firstIndex,
JsonArray data)
Sets the data of the client-side DataSource to match the given data
starting from given index.
|
void |
updateData(JsonArray data)
Updates an array of objects based on their identifying key.
|
void reset(int size)
size - size of the data sourcevoid setData(int firstIndex,
JsonArray data)
Note: This method will override any existing data in the range starting from first index with the length of the data array.
firstIndex - first index to updatedata - array of new datavoid updateData(JsonArray data)
data - array of updated datavoid insertRows(int firstRowIndex,
int count)
firstRowIndex - the destination index of the new row datacount - the number of rows insertedvoid removeRows(int firstRowIndex,
int count)
firstRowIndex - the index of the first removed rowcount - the number of removed rows, starting from
firstRowIndexCopyright © 2021 Vaadin Ltd. All rights reserved.