本文整理汇总了Java中com.extjs.gxt.ui.client.data.BasePagingLoader.setRemoteSort方法的典型用法代码示例。如果您正苦于以下问题:Java BasePagingLoader.setRemoteSort方法的具体用法?Java BasePagingLoader.setRemoteSort怎么用?Java BasePagingLoader.setRemoteSort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.extjs.gxt.ui.client.data.BasePagingLoader
的用法示例。
在下文中一共展示了BasePagingLoader.setRemoteSort方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAvailableProfiles
import com.extjs.gxt.ui.client.data.BasePagingLoader; //导入方法依赖的package包/类
/**
* Gets the available profiles.
*
* @return the available profiles
*/
private ListStore<UserGroupModel> getAvailableProfiles()
{
ListStore<UserGroupModel> availableProfiles = new ListStore<UserGroupModel>();
RpcProxy<PagingLoadResult<UserGroupModel>> profileProxy = new RpcProxy<PagingLoadResult<UserGroupModel>>()
{
@Override
protected void load(Object loadConfig, AsyncCallback<PagingLoadResult<UserGroupModel>> callback)
{
profilesManagerServiceRemote.getProfiles(
((PagingLoadConfig) loadConfig).getOffset(), ((PagingLoadConfig) loadConfig).getLimit(),
false, callback);
}
};
BasePagingLoader<PagingLoadResult<ModelData>> profilesLoader =
new BasePagingLoader<PagingLoadResult<ModelData>>(
profileProxy);
profilesLoader.setRemoteSort(false);
availableProfiles = new ListStore<UserGroupModel>(profilesLoader);
return availableProfiles;
}
示例2: getLoader
import com.extjs.gxt.ui.client.data.BasePagingLoader; //导入方法依赖的package包/类
public BasePagingLoader<PagingLoadResult<BeanObject>> getLoader(final Criteria criteria) {
final String model = ModelNames.BONUSTYPE;
final IShopServiceAsync service = getService();
MyRpcProxy<PagingLoadResult<BeanObject>> proxy = new MyRpcProxy<PagingLoadResult<BeanObject>>() {
public void load(Object loadConfig, AsyncCallback callback) {
service.getUserBonusPagingList(criteria, (PagingLoadConfig) loadConfig, callback);
}
};
proxy.setCriteria(criteria);
// loader
BasePagingLoader<PagingLoadResult<BeanObject>> loader = new BasePagingLoader<PagingLoadResult<BeanObject>>(proxy);
loader.setRemoteSort(true);
return loader;
}
示例3: getLoader
import com.extjs.gxt.ui.client.data.BasePagingLoader; //导入方法依赖的package包/类
public BasePagingLoader getLoader(final String model) {
if (model == null) {
throw new RuntimeException("model = null");
}
final IShopServiceAsync service = getService();
MyProxy proxy = new MyProxy() {
public void load(Object loadConfig, AsyncCallback callback) {
service.getIndexPagingList(model,(PagingLoadConfig) loadConfig, callback);
}
};
// loader
BasePagingLoader loader = new BasePagingLoader(proxy);
loader.setRemoteSort(true);
return loader;
}
示例4: getLoader
import com.extjs.gxt.ui.client.data.BasePagingLoader; //导入方法依赖的package包/类
public BasePagingLoader<PagingLoadResult<BeanObject>> getLoader(final String model, final Criteria criteria, final Map<String,List<String>> wantedFields) {
if (model == null) {
throw new RuntimeException("model = null");
}
final IShopServiceAsync service = getService();
MyRpcProxy<PagingLoadResult<BeanObject>> proxy = new MyRpcProxy<PagingLoadResult<BeanObject>>() {
public void load(Object loadConfig, AsyncCallback callback) {
service.getPagingList(model, criteria, wantedFields == null ? null : wantedFields.get(model), (PagingLoadConfig) loadConfig, callback);
}
};
proxy.setCriteria(criteria);
// loader
BasePagingLoader<PagingLoadResult<BeanObject>> loader = new BasePagingLoader<PagingLoadResult<BeanObject>>(proxy);
loader.setRemoteSort(true);
return loader;
}
示例5: getLoader
import com.extjs.gxt.ui.client.data.BasePagingLoader; //导入方法依赖的package包/类
public BasePagingLoader getLoader(final Map<String, String> idMap, final Criteria criteria,
final List<String> wantedFields) {
final IShopServiceAsync service = getService();
MyProxy proxy = new MyProxy() {
@Override
protected void load(Object config, AsyncCallback callback) {
service.getAllDiliveryMethods((PagingLoadConfig) config,
callback);
}
};
proxy.setCriteria(criteria);
BasePagingLoader loader = new BasePagingLoader(proxy);
loader.setRemoteSort(true);
updateIdMap(idMap);
return loader;
}
示例6: getLoader
import com.extjs.gxt.ui.client.data.BasePagingLoader; //导入方法依赖的package包/类
public BasePagingLoader getLoader(final Map<String, String> idMap, final Criteria criteria,
final List<String> wantedFields)
{
final IShopServiceAsync service = getService();
MyProxy proxy = new MyProxy() {
@Override
protected void load(Object config, AsyncCallback callback) {
service.getAllPaymentMethods((PagingLoadConfig) config, callback);
}
};
proxy.setCriteria(criteria);
BasePagingLoader loader = new BasePagingLoader(proxy);
loader.setRemoteSort(true);
updateIdMap(idMap);
return loader;
}