本文整理汇总了Java中com.extjs.gxt.ui.client.data.PagingLoadConfig类的典型用法代码示例。如果您正苦于以下问题:Java PagingLoadConfig类的具体用法?Java PagingLoadConfig怎么用?Java PagingLoadConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PagingLoadConfig类属于com.extjs.gxt.ui.client.data包,在下文中一共展示了PagingLoadConfig类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getAvailableProfiles
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的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: getUsersPermissions
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
@Override
@Transactional
public PagingLoadResult<BaseModel> getUsersPermissions(PagingLoadConfig config) {
Integer size = userDAO.listUser("1").size();
List<User> users = permissionDAO.getUsersPermissions(config);
List<UserDTO> usersDTO = new ArrayList<UserDTO>(users != null ? users.size() : 0);
List<BaseModel> bm = new ArrayList<BaseModel>(users != null ? users.size() : 0);
for(User u: users){
BaseModel b = new BaseModel();
b.set("fullName", u.getFullName());
b.set("id", u.getId());
b.set("pm", u.getPermission().getPm());
b.set("dm", u.getPermission().getDm());
b.set("fd", u.getPermission().getFd());
b.set("admin", u.getPermission().getAdmin());
bm.add(b);
}
int start = config.getOffset();
int limit = usersDTO.size();
if (config.getLimit() > 0) {
limit = Math.min(start + config.getLimit(), limit);
}
return new BasePagingLoadResult<BaseModel>(bm, config.getOffset(), size);
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:27,代码来源:UserServiceImpl.java
示例3: getUsersPermissions
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
@Override
@Transactional
public List<User> getUsersPermissions(PagingLoadConfig loadConfig){
@SuppressWarnings("unchecked")
List<User> users = new ArrayList<User>(sessionFactory.getCurrentSession().createQuery("select u from User u join fetch u.permission as p where u.status=1 order by u.secondName")
.setFirstResult(loadConfig.getOffset())
.setMaxResults(loadConfig.getLimit())
.list());
for(User u: users){
Hibernate.initialize(u.getPermission());
}
return users;
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:17,代码来源:PermissionDAOImpl.java
示例4: getLoader
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的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
示例5: getLoader
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的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
示例6: getLoader
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的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
示例7: getLoader
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的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
示例8: getLoader
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的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
示例9: getUserBonusPagingList
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getUserBonusPagingList(Criteria criteria, PagingLoadConfig config) {
UserBonusManager userBonusManager = SpringUtil.getUserBonusManager();
PagingLoadResult<BeanObject> result = pagingAction.getPagingList(ModelNames.BONUSTYPE, convert(criteria), null, config);
List<BeanObject> bonusTypes = result.getData();
for (BeanObject bonusType : bonusTypes) {
com.jcommerce.core.service.Criteria _criteria = new com.jcommerce.core.service.Criteria();
_criteria.addCondition(new com.jcommerce.core.service.Condition(IUserBonus.BONUS_TYPE, com.jcommerce.core.service.Condition.EQUALS, bonusType.getLong(IBonusType.ID)));
int count = userBonusManager.getUserBonusCount(_criteria);
bonusType.set(IBonusType.NUMBER, count);
_criteria.addCondition(new com.jcommerce.core.service.Condition(IUserBonus.USED_TIME, com.jcommerce.core.service.Condition.ISNULL, bonusType.getLong(IBonusType.ID)));
count = userBonusManager.getUserBonusCount(_criteria);
bonusType.set(IBonusType.USED_NUMBER, count);
}
return result;
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:17,代码来源:IShopServiceImpl.java
示例10: load
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
@Override
protected void load(Object loadConfig, AsyncCallback<SiteResult> callback) {
PagingLoadConfig config = (PagingLoadConfig) loadConfig;
GetSites cmd = new GetSites();
cmd.setLimit(config.getLimit());
cmd.setOffset(config.getOffset());
cmd.setFilter(filter);
cmd.setSeekToSiteId(siteIdToSelectOnNextLoad);
service.execute(cmd, callback);
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:13,代码来源:SiteGridPanel.java
示例11: getPagingList
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getPagingList(String modelName, Criteria criteria, List<String> wantedFields, PagingLoadConfig config) {
try {
return pagingAction.getPagingList(modelName, convert(criteria), wantedFields, config);
} catch (RuntimeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw e;
}
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:10,代码来源:IShopServiceImpl.java
示例12: getGoodsTypeUnit
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getGoodsTypeUnit(
boolean needAttrNumber, PagingLoadConfig config) {
// Add something you like
Map<String, Object> maps = new HashMap<String, Object>();
if (needAttrNumber) {
try {
List<GoodsType> goodsTypeUnit = goodsTypeManager
.getGoodsTypeList();
List<BeanObject> objs = new ArrayList<BeanObject>();
com.jcommerce.core.service.Condition cond = new com.jcommerce.core.service.Condition();
cond.setField(IAttribute.GOODSTYPE);
cond.setOperator(Condition.EQUALS);
com.jcommerce.core.service.Criteria criteria = new com.jcommerce.core.service.Criteria();
for (Iterator<GoodsType> it = goodsTypeUnit.iterator(); it.hasNext();) {
GoodsType goodsType = it.next();
maps.put(GoodsType.NAME, goodsType.getName());
maps.put(GoodsType.ID, goodsType.getId());
maps.put(GoodsType.ENABLED, goodsType.isEnabled());
cond.setValue(goodsType.getId());
criteria.addCondition(cond);
maps.put(GoodsType.ATTRCOUNT, attributeManager.getAttributeCount(criteria));
criteria.removeAll();
maps.put(GoodsType.ATTRIBUTEGROUP, goodsType.getAttributeGroup());
objs.add(new BeanObject("GoodsType", maps));
}
return new BasePagingLoadResult(objs, config.getOffset(), goodsTypeUnit.size());
} catch (Exception ex) {
ex.printStackTrace();
return null;
}
} else {
return pagingAction.getPagingList("GoodsType", null, config);
}
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:37,代码来源:IShopServiceImpl.java
示例13: getAllPaymentMethods
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getAllPaymentMethods(PagingLoadConfig config) {
List<BeanObject> beans = PaymentResourceUtil.getPaymentBeanObjects();
System.out.println(beans.size() + " \t :beans.size()");
for(int i=0; i<beans.size(); i++)
{
BeanObject bean = beans.get(i);
System.out.println(bean.getString(IPayment.NAME) + "---------+++++++++----");
}
PagingLoadResult<BeanObject> pagingLoad = new BasePagingLoadResult(beans);
return pagingLoad;
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:14,代码来源:IShopServiceImpl.java
示例14: getGoodsTypeListWithAttrCount
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public void getGoodsTypeListWithAttrCount(String modelName, Criteria criteria,
List<String> wantedFields, PagingLoadConfig config, AsyncCallback<PagingLoadResult<BeanObject>> callback);
开发者ID:jbosschina,项目名称:jcommerce,代码行数:3,代码来源:ISpecialServiceAsync.java
示例15: getGoodsTypeListWithAttrCount
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getGoodsTypeListWithAttrCount(String modelName,
Criteria criteria, List<String> wantedFields, PagingLoadConfig config);
开发者ID:jbosschina,项目名称:jcommerce,代码行数:3,代码来源:ISpecialService.java
示例16: getPagingList
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getPagingList(String modelName, Criteria criteria, PagingLoadConfig pgc) {
return getPagingList(modelName, criteria, null, pgc);
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:4,代码来源:PagingListAction.java
示例17: getIndexPagingList
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getIndexPagingList(String modelName, PagingLoadConfig config) {
// TODO Auto-generated method stub
new Exception("getIndexPagingList unimplemented").printStackTrace();
return null;
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:6,代码来源:IShopServiceImpl.java
示例18: getAllDiliveryMethods
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BeanObject> getAllDiliveryMethods(PagingLoadConfig config) {
return new BasePagingLoadResult(ShippingResourceUtil.getShippingBeanObjects());
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:5,代码来源:IShopServiceImpl.java
示例19: getUsersPermissions
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public void getUsersPermissions(PagingLoadConfig loadConfig,AsyncCallback<PagingLoadResult<BaseModel>> callback);
开发者ID:treblereel,项目名称:Opensheet,代码行数:2,代码来源:UserServiceAsync.java
示例20: getUsersPermissions
import com.extjs.gxt.ui.client.data.PagingLoadConfig; //导入依赖的package包/类
public PagingLoadResult<BaseModel> getUsersPermissions(PagingLoadConfig loadConfig);
开发者ID:treblereel,项目名称:Opensheet,代码行数:2,代码来源:UserService.java
注:本文中的com.extjs.gxt.ui.client.data.PagingLoadConfig类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论