|
|
@ -167,9 +167,6 @@ public abstract class LiteConditionPane<T extends Condition> extends BasicBeanPa |
|
|
|
|
|
|
|
|
|
|
|
TreePath selectedTreePath = conditionsTree.getSelectionPath(); |
|
|
|
TreePath selectedTreePath = conditionsTree.getSelectionPath(); |
|
|
|
if (selectedTreePath == null) { |
|
|
|
if (selectedTreePath == null) { |
|
|
|
// 清空编辑框
|
|
|
|
|
|
|
|
defaultConditionPane.populateBean((T)new ObjectCondition(new Compare(Compare.EQUALS, StringUtils.EMPTY))); |
|
|
|
|
|
|
|
formulaTextArea.setText(StringUtils.EMPTY); |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -856,6 +853,10 @@ public abstract class LiteConditionPane<T extends Condition> extends BasicBeanPa |
|
|
|
rootTreeNode.setUserObject(new JoinCondition(DataConstants.AND, new ListCondition())); |
|
|
|
rootTreeNode.setUserObject(new JoinCondition(DataConstants.AND, new ListCondition())); |
|
|
|
rootTreeNode.removeAllChildren(); |
|
|
|
rootTreeNode.removeAllChildren(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 清空编辑框
|
|
|
|
|
|
|
|
defaultConditionPane.populateBean((T)new ObjectCondition(new Compare(Compare.EQUALS, StringUtils.EMPTY))); |
|
|
|
|
|
|
|
formulaTextArea.setText(StringUtils.EMPTY); |
|
|
|
|
|
|
|
|
|
|
|
// peter:需要构建成ListCondition,加入到里面.
|
|
|
|
// peter:需要构建成ListCondition,加入到里面.
|
|
|
|
if (liteCondition instanceof ListCondition) { |
|
|
|
if (liteCondition instanceof ListCondition) { |
|
|
|
ListCondition listCondition = (ListCondition) liteCondition; |
|
|
|
ListCondition listCondition = (ListCondition) liteCondition; |
|
|
|