I'm developing a GXT app and in the examples I have seen so far on the web there is reference to the class com.sencha.gxt.data.shared.loader.BasePagingLoadResult
. However, this is deprecated in GXT 3.0 jar I am using (3.0.1). What is the correct way to use this now? Do I need to implement the interface myself?
The interface is already implemented in PagingLoadResultBean (A ListLoadResultBean that adds support for paging properties as described by PagingLoadResult.):
For example:
@Override public PagingLoadResult<Data> getMyData(PagingLoadConfig loadConfig) {
ArrayList<Data> dataList;
dataList = obtainDataMethod(); //Your method to obtain your list of data
return new PagingLoadResultBean<Data>(dataList, loadConfig.getOffset(), loadConfig.getLimit());
}