public interface DataModel<T>
PagedGrid may request paged server-side data
asynchronously.| Modifier and Type | Method and Description |
|---|---|
void |
doFetchRows(int start,
int count,
AsyncCallback<List<T>> callback)
Perform a paged data request for the given number of items at the given offset into the
result set.
|
int |
getItemCount()
Returns the total number of items in this model.
|
void |
removeItem(T item)
Called when we wish to remove an item from our locally cached data.
|
int getItemCount()
doFetchRows(int, int, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<T>>) is called back. You may also return -1 to indicate
that this model does not supply a row count, and the pager should continue offering pages
for as long as the underlying service is able to satisfy the requests.void doFetchRows(int start,
int count,
AsyncCallback<List<T>> callback)
void removeItem(T item)
Copyright © 2013. All Rights Reserved.