editui刷新数据与列表循环
2015-08-07 10:20
417 查看
/**
* 重新刷新数据
*
*/
public void refreshSelf() {
if(STATUS_ADDNEW.equals(this.oprtState)){
return;
}
try {
ObjectUuidPK pk = new ObjectUuidPK(editData.getId());
IObjectValue objValue = getValue(pk);
setDataObject(objValue);
loadFields();
getUIContext().put(UIContext.ID, pk);
getUIContext().put(UIContext.INIT_DATAOBJECT, objValue);
} catch (Exception e) {
handUIException(e);
}
}
this.checkSelected(); //检测是否有选中数据
循环列表:
KDTSelectBlock sb ;
int size = tblMain.getSelectManager().size();
for(int i=0;i<size;i++){
sb = tblMain.getSelectManager().get(i);
for(int j=sb.getTop(); j<=sb.getBottom(); j++){
IRow row = tblMain.getRow(j);
idlist.add(row.getCell("id").getValue());
}
}
* 重新刷新数据
*
*/
public void refreshSelf() {
if(STATUS_ADDNEW.equals(this.oprtState)){
return;
}
try {
ObjectUuidPK pk = new ObjectUuidPK(editData.getId());
IObjectValue objValue = getValue(pk);
setDataObject(objValue);
loadFields();
getUIContext().put(UIContext.ID, pk);
getUIContext().put(UIContext.INIT_DATAOBJECT, objValue);
} catch (Exception e) {
handUIException(e);
}
}
this.checkSelected(); //检测是否有选中数据
循环列表:
KDTSelectBlock sb ;
int size = tblMain.getSelectManager().size();
for(int i=0;i<size;i++){
sb = tblMain.getSelectManager().get(i);
for(int j=sb.getTop(); j<=sb.getBottom(); j++){
IRow row = tblMain.getRow(j);
idlist.add(row.getCell("id").getValue());
}
}
相关文章推荐
- easyui阻止事件冒泡
- amazeui 懒加载 搜索不到图片时,如何为图片加上默认图
- 23. PHP include and require 文件
- EQueue性能测试计划
- NGUI 九宫格纹理拉伸
- Bluetooth Keyboard Replace
- Handler、Looper、MessageQueue(三)
- 哈希-4 Values whose Sum is 0
- 哈希-4 Values whose Sum is 0 分类: POJ 哈希 2015-08-07 09:51 3人阅读 评论(0) 收藏
- leetcode_Implement Stack using Queues
- UITextView实现placeholder的猥琐做法
- qt中的ui改变了,但是程序exe没有反应出来
- iOS UISegmentedControl 学习
- Poj 2299 Ultra-QuickSort (归排求逆序数)
- leetcode_Implement Queue using Stacks
- 基于mysql的程序抛异常 Unable to find the requested .Net Framework Data Provider. It may not be installed
- Android API Guides – Introduction to Android
- bluetooth发展(五岁以下儿童)------蓝牙功能测试(一个)
- iOS UI07_界面传值
- [IOS]今天开始学UI---UISegmentedControl&&UIStepper