Browse Source

REPORT-3961 数据列条件分组新增的条件右侧面板不刷新

master
yaoh.wu 7 years ago
parent
commit
5cd584fead
  1. 10
      designer-base/src/main/java/com/fr/design/condition/LiteConditionPane.java

10
designer-base/src/main/java/com/fr/design/condition/LiteConditionPane.java

@ -857,9 +857,10 @@ public abstract class LiteConditionPane<T extends Condition> extends BasicBeanPa
*/
@Override
public void populateBean(Condition liteCondition) {
if (liteCondition == null){
return;
}
// liteCondition = null 时清空显示
// if (liteCondition == null){
// return;
// }
// peter: 先删除所有的节点
DefaultTreeModel defaultTreeModel = (DefaultTreeModel) this.conditionsTree.getModel();
ExpandMutableTreeNode rootTreeNode = (ExpandMutableTreeNode) defaultTreeModel.getRoot();
@ -900,7 +901,8 @@ public abstract class LiteConditionPane<T extends Condition> extends BasicBeanPa
if (liteCondition == null) {
try {
defaultConditionPane.checkValid();
} catch (Exception e) {//not need
} catch (Exception ignored) {
//not need
}
}
}

Loading…
Cancel
Save