|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataChangeHandler
Callback interface used by DataSource to inform its user about
updates to the data.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 rows
void dataRemoved(int firstRowIndex,
int numberOfRows)
firstRowIndex - the index that the first removed row had prior to removalnumberOfRows - the number of removed rows
void dataAdded(int firstRowIndex,
int numberOfRows)
firstRowIndex - the index of the first added rownumberOfRows - the number of added rows
void 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||