Browse Source

Pull request #6644: REPORT-62539 不触发事件了,直接改可见性

Merge in DESIGN/design from ~XIQIU/design:release/11.0 to release/11.0

* commit 'aee7de437134a246ad3d31e4fc0dab0ccbde53e6':
  REPORT-62539  优化下代码
  REPORT-62539  不触发事件了,直接改可见性
bugfix/11.0
Xiqiu 3 years ago
parent
commit
ca278d8016
  1. 7
      designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

7
designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

@ -119,12 +119,7 @@ public class JDBCDefPane extends JPanel {
driverManageLabel.setVisible(selectSelfDefine); driverManageLabel.setVisible(selectSelfDefine);
driverLoaderBox.setVisible(selectSelfDefine); driverLoaderBox.setVisible(selectSelfDefine);
driverComboBox.setVisible(!selectSelfDefine); driverComboBox.setVisible(!selectSelfDefine);
// 选中自定义的话,将odbc的屏蔽,选中默认的话,重新触发一次driverComboBox的事件 odbcTipsLink.setVisible(driverComboBox.isVisible() && ComparatorUtils.equals("sun.jdbc.odbc.JdbcOdbcDriver", driverComboBox.getSelectedItem()));
if (selectSelfDefine) {
odbcTipsLink.setVisible(false);
} else {
driverComboBox.setSelectedItem(driverComboBox.getSelectedItem());
}
} }
}; };
ActionListener dbtypeActionListener = new ActionListener() { ActionListener dbtypeActionListener = new ActionListener() {

Loading…
Cancel
Save