public interface DataGenerator extends Serializable
Grid.AbstractGridExtensions that allows adding data to row
objects being sent to client by the RpcDataProviderExtension.
This class also provides a way to remove any unneeded data once the data object is no longer used on the client-side.
| Modifier and Type | Method and Description |
|---|---|
void |
destroyData(Object itemId)
Informs the DataGenerator that an item id has been dropped and is no
longer needed.
|
void |
generateData(Object itemId,
Item item,
elemental.json.JsonObject rowData)
Adds data to row object for given item and item id being sent to client.
|
void generateData(Object itemId, Item item, elemental.json.JsonObject rowData)
itemId - item id of itemitem - item being sent to clientrowData - row object being sent to clientvoid destroyData(Object itemId)
itemId - removed item idCopyright © 2016 Vaadin Ltd. All rights reserved.