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