public interface DataChangeHandler
DataSource to inform its user about
updates to the data.| Modifier and Type | Method and Description |
|---|---|
void |
dataAdded(int firstRowIndex,
int numberOfRows)
Called when the new rows have been added to the container.
|
void |
dataAvailable(int firstRowIndex,
int numberOfRows)
Called when rows requested with
DataSource.ensureAvailability(int, int) rows are available. |
void |
dataRemoved(int firstRowIndex,
int numberOfRows)
Called when rows have been removed from the data source.
|
void |
dataUpdated(int firstRowIndex,
int numberOfRows)
Called when the contents of the data source has changed.
|
void |
resetDataAndSize(int estimatedNewDataSize)
Resets all data and defines a new size for the data.
|
void dataUpdated(int firstRowIndex,
int numberOfRows)
dataAdded(int, int) or dataRemoved(int, int) should
ideally be used instead.firstRowIndex - the index of the first changed rownumberOfRows - the number of changed rowsvoid dataRemoved(int firstRowIndex,
int numberOfRows)
firstRowIndex - the index that the first removed row had prior to removalnumberOfRows - the number of removed rowsvoid dataAdded(int firstRowIndex,
int numberOfRows)
firstRowIndex - the index of the first added rownumberOfRows - the number of added rowsvoid dataAvailable(int firstRowIndex,
int numberOfRows)
DataSource.ensureAvailability(int, int) rows are available.firstRowIndex - the index of the first available rownumberOfRows - the number of available rowsvoid resetDataAndSize(int estimatedNewDataSize)
This should be used in the cases where the data has changed in some unverifiable way. I.e. "something happened". This will lead to a re-rendering of the current Grid viewport
estimatedNewDataSize - the estimated size of the new data setCopyright © 2023 Vaadin Ltd. All rights reserved.