|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.data.datapane.connect; |
|
|
|
package com.fr.design.data.datapane.connect; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
import com.fr.data.impl.JDBCDatabaseConnection; |
|
|
|
import com.fr.data.impl.JDBCDatabaseConnection; |
|
|
|
import com.fr.data.security.ssh.BaseSsh; |
|
|
|
import com.fr.data.security.ssh.BaseSsh; |
|
|
|
import com.fr.data.security.ssh.Ssh; |
|
|
|
import com.fr.data.security.ssh.Ssh; |
|
|
@ -86,13 +87,13 @@ public class SshPane extends BasicPane { |
|
|
|
type.setEditable(false); |
|
|
|
type.setEditable(false); |
|
|
|
type.setSelectedItem(Toolkit.i18nText("Fine-Design_Basic_Ssh_Private_Key")); |
|
|
|
type.setSelectedItem(Toolkit.i18nText("Fine-Design_Basic_Ssh_Private_Key")); |
|
|
|
JPanel filePanel = TableLayoutHelper.createCommonTableLayoutPane(new Component[][]{{keyPath, fileChooserButton}}, new double[]{p}, new double[]{f, 20}, 0); |
|
|
|
JPanel filePanel = TableLayoutHelper.createCommonTableLayoutPane(new Component[][]{{keyPath, fileChooserButton}}, new double[]{p}, new double[]{f, 20}, 0); |
|
|
|
Component[] compIp = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Host") + ":", SwingConstants.RIGHT), ip}; |
|
|
|
Component[] compIp = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Host") + ":", SwingConstants.TRAILING), ip}; |
|
|
|
Component[] compPort = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Port") + ":", SwingConstants.RIGHT), port}; |
|
|
|
Component[] compPort = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Port") + ":", SwingConstants.TRAILING), port}; |
|
|
|
Component[] compUserName = {new UILabel(Toolkit.i18nText("Fine-Design_Report_UserName") + ":", SwingConstants.RIGHT), user}; |
|
|
|
Component[] compUserName = {new UILabel(Toolkit.i18nText("Fine-Design_Report_UserName") + ":", SwingConstants.TRAILING), user}; |
|
|
|
Component[] compMethod = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Ssh_Verify_Method") + ":", SwingConstants.RIGHT), type}; |
|
|
|
Component[] compMethod = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Ssh_Verify_Method") + ":", SwingConstants.TRAILING), type}; |
|
|
|
Component[] compPassword = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Password") + ":", SwingConstants.RIGHT), password}; |
|
|
|
Component[] compPassword = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Password") + ":", SwingConstants.TRAILING), password}; |
|
|
|
Component[] compKey = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Ssh_Private_Key") + ":", SwingConstants.RIGHT), filePanel}; |
|
|
|
Component[] compKey = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Ssh_Private_Key") + ":", SwingConstants.TRAILING), filePanel}; |
|
|
|
Component[] comSecret = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Ssh_Secret") + ":", SwingConstants.RIGHT), secret}; |
|
|
|
Component[] comSecret = {new UILabel(Toolkit.i18nText("Fine-Design_Basic_Ssh_Secret") + ":", SwingConstants.TRAILING), secret}; |
|
|
|
|
|
|
|
|
|
|
|
passwordComps = new Component[][]{ |
|
|
|
passwordComps = new Component[][]{ |
|
|
|
compIp, |
|
|
|
compIp, |
|
|
@ -111,7 +112,9 @@ public class SshPane extends BasicPane { |
|
|
|
}; |
|
|
|
}; |
|
|
|
usingSsh.setSelected(true); |
|
|
|
usingSsh.setSelected(true); |
|
|
|
contextPane = TableLayoutHelper.createGapTableLayoutPane(keyComps, new double[]{p, p, p, p, p, p}, columnSize, 11, 11); |
|
|
|
contextPane = TableLayoutHelper.createGapTableLayoutPane(keyComps, new double[]{p, p, p, p, p, p}, columnSize, 11, 11); |
|
|
|
jPanel.add(usingSsh, BorderLayout.NORTH); |
|
|
|
JPanel sshPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
|
|
|
sshPane.add(usingSsh, BorderLayout.LINE_START); |
|
|
|
|
|
|
|
jPanel.add(sshPane, BorderLayout.NORTH); |
|
|
|
jPanel.add(contextPane, BorderLayout.CENTER); |
|
|
|
jPanel.add(contextPane, BorderLayout.CENTER); |
|
|
|
this.add(jPanel); |
|
|
|
this.add(jPanel); |
|
|
|
|
|
|
|
|
|
|
@ -145,6 +148,7 @@ public class SshPane extends BasicPane { |
|
|
|
fileChooser.removeTopPath(); |
|
|
|
fileChooser.removeTopPath(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
BidiUtils.applyOrientationByLocale(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|