本文整理汇总了Java中com.extjs.gxt.ui.client.data.BasePagingLoadResult类的典型用法代码示例。如果您正苦于以下问题:Java BasePagingLoadResult类的具体用法?Java BasePagingLoadResult怎么用?Java BasePagingLoadResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BasePagingLoadResult类属于com.extjs.gxt.ui.client.data包,在下文中一共展示了BasePagingLoadResult类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: findGroups
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
@Override
public PagingLoadResult<GroupModel> findGroups(Integer offset, Integer limit) {
Integer count = soFinder.countGroup();
List<GroupModel> models = new ArrayList<GroupModel>();
try {
List<CfGroup> list = soFinder.findGroups(offset, limit);
for (CfGroup group : list) {
GroupModel model = new GroupModel();
BeanUtils.copyProperties(group, model);
models.add(model);
}
} catch (Exception e) {
log.error("error occurred", e);
}
return new BasePagingLoadResult<GroupModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:17,代码来源:SoDelegateImpl.java
示例2: getUsersPermissions
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的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: loadGroupData
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public BasePagingLoadResult<GroupCollection> loadGroupData(String token, BasePagingLoadConfig config) throws CMDBRPCException {
try {
GroupDescription desc = config.get("groupDescription");
ContentData mdrData = desc.getMDR();
if (mdrData == null) {
String path = ConfigurationFactory.getConfig().get(Config.OneCMDBWebService);
mdrData = new ContentFile(path);
}
String xmlQuery = desc.getQuery();
XML2GraphQuery parser = new XML2GraphQuery();
GraphQuery query = parser.parse(xmlQuery);
ICIMDR mdr = (ICIMDR) ContentParserFactory.get().getCachedAdaptor(mdrData, ICIMDR.class);
// TODO: Handle Paging...
ItemSelector prim = query.fetchPrimarySelectors();
prim.setPageInfo(new PageInfo(config.getOffset(), config.getLimit()));
Graph result = mdr.query(token, query);
result.buildMap();
GroupTransform gTransform = new GroupTransform();
List<GroupCollection> group = gTransform.generateGroupData(mdr, token, query, result);
BasePagingLoadResult<GroupCollection> data = new BasePagingLoadResult<GroupCollection>(group);
data.setOffset(config.getOffset());
data.setTotalLength(result.fetchNode(prim.getId()).getTotalCount());
return(data);
} catch (Throwable t) {
throw new CMDBRPCException("Load Group Data", t.getMessage(), CMDBRPCHandler.getStackTrace(t));
}
}
开发者ID:luox12,项目名称:onecmdb,代码行数:34,代码来源:ModelServiceImpl.java
示例4: loadDataSourceData
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public BasePagingLoadResult<BaseModel> loadDataSourceData(String token, BasePagingLoadConfig config) throws CMDBRPCException {
try {
return(new MDRSetupService().loadDataSourceData(token, config));
} catch (Throwable e) {
e.printStackTrace();
throw new CMDBRPCException("Error loading datasource data", e.getMessage(), CMDBRPCHandler.getStackTrace(e));
}
}
开发者ID:luox12,项目名称:onecmdb,代码行数:9,代码来源:ModelServiceImpl.java
示例5: setUpLoadListener
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
/**
* Sets the up load listener.
*/
private void setUpLoadListener() {
loader.addLoadListener(new LoadListener() {
@Override
public void loaderLoad(LoadEvent le) {
// TODO: change messages here!!
BasePagingLoadResult<?> result = le.getData();
if (!result.getData().isEmpty()) {
int size = result.getData().size();
String message = "";
if (size == 1) {
message = I18nProvider.getMessages().recordLabel();
} else {
message = I18nProvider.getMessages()
.recordPluralLabel();
}
Dispatcher.forwardEvent(GeofenceEvents.SEND_INFO_MESSAGE,
new String[] {
I18nProvider.getMessages()
.remoteServiceName(),
I18nProvider.getMessages().foundLabel()
+ " " + result.getData().size()
+ " " + message });
} else {
Dispatcher.forwardEvent(GeofenceEvents.SEND_INFO_MESSAGE,
new String[] {
I18nProvider.getMessages()
.remoteServiceName(),
I18nProvider.getMessages()
.recordNotFoundMessage() });
}
}
});
}
开发者ID:geoserver,项目名称:geofence,代码行数:41,代码来源:RuleDetailsGridWidget.java
示例6: load
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
@Override
public void load(DataReader<PagingLoadResult<DashboardContact>> reader, Object loadConfig, AsyncCallback<PagingLoadResult<DashboardContact>> callback) {
FilterPagingLoadConfig config = (FilterPagingLoadConfig)loadConfig;
List<DashboardContact> results;
int totalLength = 0;
int offset = config.getOffset();
if (ClientUtils.isEmpty(allContacts)) {
results = Collections.emptyList();
} else {
sortContacts(config.getSortInfo());
List<DashboardContact> filteredList = filterContacts(config.getFilterConfigs());
totalLength = filteredList.size();
if (offset > totalLength) {
offset = 0;
}
int limit = offset + config.getLimit();
if (limit >= totalLength) {
limit = totalLength;
}
results = filteredList.subList(offset, limit);
}
callback.onSuccess(new BasePagingLoadResult<DashboardContact>(results, offset, totalLength));
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:33,代码来源:PagingContactsProxy.java
示例7: convertToPagingSodoCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<SodoCodeModel> convertToPagingSodoCodes(List<CfSodoCode> sodoCodes, Integer count, Integer offset) {
List<SodoCodeModel> models = new ArrayList<SodoCodeModel>();
for (CfSodoCode sodoCode : sodoCodes) {
models.add(convert(sodoCode));
}
return new BasePagingLoadResult<SodoCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例8: convertToPagingPeriods
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<PeriodModel> convertToPagingPeriods(List<CfPeriod> periods, Integer count, Integer offset) {
List<PeriodModel> models = new ArrayList<PeriodModel>();
for (CfPeriod period : periods) {
models.add(convert(period));
}
return new BasePagingLoadResult<PeriodModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例9: convertToPagingProjectCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<ProjectCodeModel> convertToPagingProjectCodes(List<CfProjectCode> projectCodes, Integer count, Integer offset) {
List<ProjectCodeModel> models = new ArrayList<ProjectCodeModel>();
for (CfProjectCode projectCode : projectCodes) {
models.add(convert(projectCode));
}
return new BasePagingLoadResult<ProjectCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例10: convertToPagingSubProjectCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<SubProjectCodeModel> convertToPagingSubProjectCodes(List<CfSubProjectCode> projectCodes, Integer count, Integer offset) {
List<SubProjectCodeModel> models = new ArrayList<SubProjectCodeModel>();
for (CfSubProjectCode projectCode : projectCodes) {
models.add(convert(projectCode));
}
return new BasePagingLoadResult<SubProjectCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例11: convertToPagingFundCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<FundCodeModel> convertToPagingFundCodes(List<CfFundCode> fundCodes, Integer count, Integer offset) {
List<FundCodeModel> models = new ArrayList<FundCodeModel>();
for (CfFundCode fundCode : fundCodes) {
models.add(convert(fundCode));
}
return new BasePagingLoadResult<FundCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例12: convertToPagingDepartmentCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<DepartmentCodeModel> convertToPagingDepartmentCodes(List<CfDepartmentCode> departmentCodes, Integer count, Integer offset) {
List<DepartmentCodeModel> models = new ArrayList<DepartmentCodeModel>();
for (CfDepartmentCode departmentCode : departmentCodes) {
models.add(convert(departmentCode));
}
return new BasePagingLoadResult<DepartmentCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例13: convertToPagingCostCenters
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<CostCenterModel> convertToPagingCostCenters(List<CfCostCenter> costCenters, Integer count, Integer offset) {
List<CostCenterModel> models = new ArrayList<CostCenterModel>();
for (CfCostCenter costCenter : costCenters) {
models.add(convert(costCenter));
}
return new BasePagingLoadResult<CostCenterModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例14: convertToPagingCountryCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<CountryCodeModel> convertToPagingCountryCodes(List<CfCountryCode> countryCodes, Integer count, Integer offset) {
List<CountryCodeModel> models = new ArrayList<CountryCodeModel>();
for (CfCountryCode countryCode : countryCodes) {
models.add(convert(countryCode));
}
return new BasePagingLoadResult<CountryCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例15: convertToPagingCurrencyCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<CurrencyCodeModel> convertToPagingCurrencyCodes(List<CfCurrencyCode> currencyCodes, Integer count, Integer offset) {
List<CurrencyCodeModel> models = new ArrayList<CurrencyCodeModel>();
for (CfCurrencyCode currencyCode : currencyCodes) {
models.add(convert(currencyCode));
}
return new BasePagingLoadResult<CurrencyCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例16: convertToPagingCityCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<CityCodeModel> convertToPagingCityCodes(List<CfCityCode> cityCodes, Integer count, Integer offset) {
List<CityCodeModel> models = new ArrayList<CityCodeModel>();
for (CfCityCode cityCode : cityCodes) {
models.add(convert(cityCode));
}
return new BasePagingLoadResult<CityCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例17: convertToPagingStateCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<StateCodeModel> convertToPagingStateCodes(List<CfStateCode> stateCodes, Integer count, Integer offset) {
List<StateCodeModel> models = new ArrayList<StateCodeModel>();
for (CfStateCode stateCode : stateCodes) {
models.add(convert(stateCode));
}
return new BasePagingLoadResult<StateCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例18: convertToPagingBankCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<BankCodeModel> convertToPagingBankCodes(List<CfBankCode> bankCodes, Integer count, Integer offset) {
List<BankCodeModel> models = new ArrayList<BankCodeModel>();
for (CfBankCode bankCode : bankCodes) {
models.add(convert(bankCode));
}
return new BasePagingLoadResult<BankCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例19: convertToPagingAccountCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<AccountCodeModel> convertToPagingAccountCodes(List<CfAccountCode> accountCodes, Integer count, Integer offset) {
List<AccountCodeModel> models = new ArrayList<AccountCodeModel>();
for (CfAccountCode accountCode : accountCodes) {
models.add(convert(accountCode));
}
return new BasePagingLoadResult<AccountCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
示例20: convertToPagingCampusCodes
import com.extjs.gxt.ui.client.data.BasePagingLoadResult; //导入依赖的package包/类
public PagingLoadResult<CampusCodeModel> convertToPagingCampusCodes(List<CfCampusCode> campusCodes, Integer count, Integer offset) {
List<CampusCodeModel> models = new ArrayList<CampusCodeModel>();
for (CfCampusCode campusCode : campusCodes) {
models.add(convert(campusCode));
}
return new BasePagingLoadResult<CampusCodeModel>(models, offset, count);
}
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:DdConverter.java
注:本文中的com.extjs.gxt.ui.client.data.BasePagingLoadResult类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论