|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.fr.design.data.datapane.connect; |
|
|
|
|
|
|
|
|
|
import com.fr.base.GraphHelper; |
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
|
import com.fr.data.driver.DriverLoader; |
|
|
|
|
import com.fr.data.driver.config.DriverLoaderConfig; |
|
|
|
|
import com.fr.data.impl.JDBCDatabaseConnection; |
|
|
|
@ -162,7 +163,7 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
public JDBCDefPane() { |
|
|
|
|
initMap(); |
|
|
|
|
this.setBorder(UITitledBorder.createBorderWithTitle("JDBC" + ":")); |
|
|
|
|
this.setBorder(BidiUtils.applyTitledBorderJustification(UITitledBorder.createBorderWithTitle("JDBC" + ":"))); |
|
|
|
|
this.setLayout(FRGUIPaneFactory.createLabelFlowLayout()); |
|
|
|
|
JPanel innerthis = FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane(); |
|
|
|
|
innerthis.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
|
|
|
@ -206,14 +207,14 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
JPanel dbtypePane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
dbtypePane.add(new UILabel((Toolkit.i18nText("Fine-Design_Basic_Database") + ":"))); |
|
|
|
|
dbtypePane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Database"), ":"))); |
|
|
|
|
Component[][] dbtypeComComponents = {{dbtypeComboBox}}; |
|
|
|
|
double[] dbtypeRowSize = {p}; |
|
|
|
|
double[] dbtypeColumnSize = {p}; |
|
|
|
|
JPanel dbtypeComPane = TableLayoutHelper.createTableLayoutPane(dbtypeComComponents, dbtypeRowSize, dbtypeColumnSize); |
|
|
|
|
|
|
|
|
|
JPanel driverPane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
driverPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Driver") + ":")); |
|
|
|
|
driverPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Driver"), ":"))); |
|
|
|
|
// 选择ODBC数据源的时候的提示链接
|
|
|
|
|
JPanel odbcTipsPane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
odbcTipsLink = new ActionLabel(Toolkit.i18nText("Fine-Design_Basic_Odbc_Tips")) { |
|
|
|
@ -262,21 +263,21 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
driverComboBoxAndTips.add(odbcTipsPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
JPanel hostPane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
hostPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Host") + ":")); |
|
|
|
|
hostPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Host"), ":"))); |
|
|
|
|
Component[][] hostComComponents = {{hostTextField}}; |
|
|
|
|
double[] hostRowSize = {p}; |
|
|
|
|
double[] hostColumnSize = {p}; |
|
|
|
|
JPanel hostComPane = TableLayoutHelper.createTableLayoutPane(hostComComponents, hostRowSize, hostColumnSize); |
|
|
|
|
|
|
|
|
|
JPanel portPane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
portPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Port") + ":")); |
|
|
|
|
portPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Port"), ":"))); |
|
|
|
|
Component[][] portComComponents = {{portTextField}}; |
|
|
|
|
double[] portRowSize = {p}; |
|
|
|
|
double[] portColumnSize = {p}; |
|
|
|
|
JPanel portComPane = TableLayoutHelper.createTableLayoutPane(portComComponents, portRowSize, portColumnSize); |
|
|
|
|
|
|
|
|
|
JPanel dbNamePane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
dbNamePane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_DatabaseName") + ":")); |
|
|
|
|
dbNamePane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_DatabaseName"), ":"))); |
|
|
|
|
Component[][] dbNameComComponents = {{dbNameTextField}}; |
|
|
|
|
double[] dbNameRowSize = {p}; |
|
|
|
|
double[] dbNameColumnSize = {p}; |
|
|
|
@ -290,8 +291,8 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
JPanel urlComPane = TableLayoutHelper.createCommonTableLayoutPane(urlComComponents, urlRowSize, urlColumnSize, 4); |
|
|
|
|
|
|
|
|
|
JPanel userPane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
userPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Report_UserName") + ":")); |
|
|
|
|
Component[][] userComComponents = {{userNameTextField, new UILabel(Toolkit.i18nText("Fine-Design_Basic_Password") + ":"), passwordTextField}}; |
|
|
|
|
userPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Report_UserName"), ":"))); |
|
|
|
|
Component[][] userComComponents = {{userNameTextField, new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Password"), ":")), passwordTextField}}; |
|
|
|
|
double[] userRowSize = {p}; |
|
|
|
|
double[] userColumnSize = {f, p, f}; |
|
|
|
|
JPanel userComPane = TableLayoutHelper.createCommonTableLayoutPane(userComComponents, userRowSize, userColumnSize, 4); |
|
|
|
@ -299,7 +300,7 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
String[] defaultEncode = new String[]{Toolkit.i18nText("Fine-Design_Encode_Auto")}; |
|
|
|
|
charSetComboBox = new UIComboBox(ArrayUtils.addAll(defaultEncode, EncodeConstants.ENCODING_ARRAY)); |
|
|
|
|
JPanel chartSetPane = FRGUIPaneFactory.createRightFlowInnerContainer_S_Pane(); |
|
|
|
|
chartSetPane.add(new UILabel(Toolkit.i18nText("Fine-Design_Basic_Datasource_Charset") + ":")); |
|
|
|
|
chartSetPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Datasource_Charset"), ":"))); |
|
|
|
|
Component[][] charSetComComponents = {{charSetComboBox}}; |
|
|
|
|
double[] charSetRowSize = {p}; |
|
|
|
|
double[] charSetColumnSize = {f}; |
|
|
|
|