svn-gvsig-desktop / trunk / extensions / extCAD / src / com / iver / cit / gvsig / gui / cad / panels / PostGISpanel.java @ 10626
History | View | Annotate | Download (1.25 KB)
1 |
package com.iver.cit.gvsig.gui.cad.panels; |
---|---|
2 |
|
3 |
import jwizardcomponent.JWizardComponents; |
4 |
import jwizardcomponent.JWizardPanel; |
5 |
|
6 |
import com.iver.cit.gvsig.jdbc_spatial.gui.jdbcwizard.ConnectionPanel; |
7 |
import com.iver.cit.gvsig.jdbc_spatial.gui.jdbcwizard.ConnectionSettings; |
8 |
|
9 |
public class PostGISpanel extends JWizardPanel { |
10 |
|
11 |
public PostGISpanel(JWizardComponents wizardComponents) {
|
12 |
super(wizardComponents);
|
13 |
initialize(); |
14 |
|
15 |
} |
16 |
|
17 |
/**
|
18 |
*
|
19 |
*/
|
20 |
private static final long serialVersionUID = 1L; |
21 |
private ConnectionPanel jPanelConex = null; |
22 |
|
23 |
/**
|
24 |
* This method initializes this
|
25 |
*
|
26 |
*/
|
27 |
private void initialize() { |
28 |
this.setSize(new java.awt.Dimension(408,284)); |
29 |
this.add(getJPanelConex(), null); |
30 |
|
31 |
} |
32 |
|
33 |
/**
|
34 |
* This method initializes jPanelConex
|
35 |
*
|
36 |
* @return javax.swing.JPanel
|
37 |
*/
|
38 |
private ConnectionPanel getJPanelConex() {
|
39 |
if (jPanelConex == null) { |
40 |
jPanelConex = new ConnectionPanel();
|
41 |
String[] drvAux = new String[1]; |
42 |
drvAux[0] = "PostGIS JDBC Driver"; |
43 |
jPanelConex.setDrivers(drvAux); |
44 |
jPanelConex.setPreferredSize(new java.awt.Dimension(400,300)); |
45 |
} |
46 |
return jPanelConex;
|
47 |
} |
48 |
|
49 |
public ConnectionSettings getConnSettings() {
|
50 |
return getJPanelConex().getConnectionSettings();
|
51 |
} |
52 |
|
53 |
} // @jve:decl-index=0:visual-constraint="10,10"
|