|
楼主 |
发表于 2016-7-25 18:25:46
|
显示全部楼层
admin 发表于 2016-7-25 17:53
解决了,看附件
if (curChildList != null && curChildList.size() > 0) {
tree.setState("closed");
tree.setChecked(false);
if (recursive) { // 递归查询子节点
List<ComboTree> children = new ArrayList<ComboTree>();
List nextChildList = new ArrayList(curChildList);
for (Object childObj : nextChildList) {
ComboTree t = comboTree(childObj, comboTreeModel, in, recursive);
children.add(t);
}
tree.setChildren(children);
}
curChildList.clear();
}
直接这样更好吧!提到git上吧 |
|