Guest User

Untitled

a guest
Jul 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. final PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(null);
  2.  
  3. store = new ListStore<T>(loader);
  4.  
  5. BasePagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(new DataProxy<PagingLoadResult<ModelData>>() {
  6.  
  7. @Override
  8. public void load(DataReader<PagingLoadResult<ModelData>> reader,
  9. Object loadConfigAsObject, AsyncCallback<PagingLoadResult<ModelData>> callback) {
  10.  
  11. BasePagingLoadConfig loadConfig = (BasePagingLoadConfig) loadConfigAsObject;
  12.  
  13. // Get the results for the requested page...
  14.  
  15. BasePagingLoadResult<ModelData> pagingLoadResult = new BasePagingLoadResult<ModelData>(...);
  16. callback.onSuccess(pagingLoadResult);
  17. }
  18. });
Add Comment
Please, Sign In to add comment