Browse Source

Merge pull request #6684 in DESIGN/design from release/11.0 to feature/x

* commit 'ca278d8016b3957345e1de2ea8df217d00fc920c':
  REPORT-62539  优化下代码
  REPORT-62539  不触发事件了,直接改可见性
feature/x
superman 3 years ago
parent
commit
373e830fca
  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);
driverLoaderBox.setVisible(selectSelfDefine);
driverComboBox.setVisible(!selectSelfDefine);
// 选中自定义的话,将odbc的屏蔽,选中默认的话,重新触发一次driverComboBox的事件
if (selectSelfDefine) {
odbcTipsLink.setVisible(false);
} else {
driverComboBox.setSelectedItem(driverComboBox.getSelectedItem());
}
odbcTipsLink.setVisible(driverComboBox.isVisible() && ComparatorUtils.equals("sun.jdbc.odbc.JdbcOdbcDriver", driverComboBox.getSelectedItem()));
}
};
ActionListener dbtypeActionListener = new ActionListener() {

Loading…
Cancel
Save