From 038f97c796b72f85beaf8dfc004acea99750ae87 Mon Sep 17 00:00:00 2001 From: "Yuan.Wang" <1536296691@qq.com> Date: Mon, 13 Jun 2022 10:22:11 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-70850=20=E4=B8=8B=E6=8B=89=E6=A0=91?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9F=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/gui/frpane/TreeSettingPane.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java b/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java index 59ea03ae2f..da1862f3d0 100644 --- a/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java +++ b/designer-base/src/main/java/com/fr/design/gui/frpane/TreeSettingPane.java @@ -62,12 +62,6 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { UILabel buildWayLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Build_Way") + " :"); buildWayPanel.add(buildWayLabel); buildBox = new UIComboBox(buildWay); - buildBox.addItemListener(e -> { - cardChanged(buildBox.getSelectedIndex()); - if (e.getStateChange() == ItemEvent.SELECTED) { - doBuildBoxSelect(buildBox.getSelectedIndex()); - } - }); buildWayPanel.add(buildBox); controlPane = new JTreeControlPane(new NameableCreator[]{treeNode}, @@ -78,7 +72,12 @@ public class TreeSettingPane extends BasicPane implements DataCreatorUI { cardChanged(0); } - private void doBuildBoxSelect(Integer selectedIndex) { + @Override + public void checkValid() throws Exception { + doBuildBoxSelect(buildBox.getSelectedIndex()); + } + + private void doBuildBoxSelect(Integer selectedIndex) { } private void cardChanged(int index) {