当前位置: 首页>>代码示例>>Java>>正文


Java BasePagingLoader.setRemoteSort方法代码示例

本文整理汇总了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;
}
 
开发者ID:geoserver,项目名称:geofence,代码行数:30,代码来源:AddGsUserWidget.java

示例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;
}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:18,代码来源:BonusService.java

示例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;
}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:21,代码来源:IndexService.java

示例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;
}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:20,代码来源:PagingListService.java

示例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;
}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:19,代码来源:ShippingInitService.java

示例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;
}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:20,代码来源:PaymentInitService.java


注:本文中的com.extjs.gxt.ui.client.data.BasePagingLoader.setRemoteSort方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。