Revision 6956

View differences:

trunk/extensions/extPublish/src-test/com/iver/cit/gvsig/publish/gui/SelectServerPanelTest.java
1
package com.iver.cit.gvsig.publish.gui;
2

  
3
import java.awt.BorderLayout;
4
import java.awt.FlowLayout;
5
import java.util.Vector;
6

  
7
import javax.swing.JFrame;
8

  
9

  
10

  
11
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
12
 *
13
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
14
 *
15
 * This program is free software; you can redistribute it and/or
16
 * modify it under the terms of the GNU General Public License
17
 * as published by the Free Software Foundation; either version 2
18
 * of the License, or (at your option) any later version.
19
 *
20
 * This program is distributed in the hope that it will be useful,
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 * GNU General Public License for more details.
24
 *
25
 * You should have received a copy of the GNU General Public License
26
 * along with this program; if not, write to the Free Software
27
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
28
 *
29
 * For more information, contact:
30
 *
31
 *  Generalitat Valenciana
32
 *   Conselleria d'Infraestructures i Transport
33
 *   Av. Blasco Ib??ez, 50
34
 *   46010 VALENCIA
35
 *   SPAIN
36
 *
37
 *      +34 963862235
38
 *   gvsig@gva.es
39
 *      www.gvsig.gva.es
40
 *
41
 *    or
42
 *
43
 *   IVER T.I. S.A
44
 *   Salamanca 50
45
 *   46005 Valencia
46
 *   Spain
47
 *
48
 *   +34 963163400
49
 *   dac@iver.es
50
 */
51
/* CVS MESSAGES:
52
 *
53
 * $Id$
54
 * $Log$
55
 * Revision 1.1  2006-08-31 19:18:50  jorpiell
56
 * *** empty log message ***
57
 *
58
 *
59
 */
60
/**
61
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
62
 */
63
public class SelectServerPanelTest  {
64
	
65
	public static void main(String[] args) {
66
		JFrame f = new JFrame();
67
		f.getContentPane().add(new SelectServerPanel());	    
68
		f.setBounds(100,100,515,225);
69
		f.setVisible(true);
70
	}
71
	
72
	
73
}
0 74

  
trunk/extensions/extPublish/config/text.properties
1
publish_layer_wms=Publicar vista en Servidor WMS
1
publish_layer_wms=Publicar vista en Servidor WMS
2
url=URL
3
serverName=Servidor
4
serverType=Tipo servicio
5
server_path=Path
6
select_publish_server=Selecciona el tipo de servidor
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/SelectServerWindow.java
1
package com.iver.cit.gvsig.publish.gui;
2

  
3
import com.iver.andami.PluginServices;
4
import com.iver.andami.ui.mdiManager.IWindow;
5
import com.iver.andami.ui.mdiManager.WindowInfo;
6
import com.iver.cit.gvsig.publish.Servers;
7
import com.iver.cit.gvsig.publish.gui.comboServer.ServerData;
8
import com.iver.cit.gvsig.publish.gui.comboServer.ServerDataPersistence;
9
import com.iver.cit.gvsig.publish.gui.listeners.SelectServerWindowListener;
10
import com.iver.utiles.NotExistInXMLEntity;
11
import com.iver.utiles.XMLEntity;
12

  
13
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
14
 *
15
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
16
 *
17
 * This program is free software; you can redistribute it and/or
18
 * modify it under the terms of the GNU General Public License
19
 * as published by the Free Software Foundation; either version 2
20
 * of the License, or (at your option) any later version.
21
 *
22
 * This program is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 *
27
 * You should have received a copy of the GNU General Public License
28
 * along with this program; if not, write to the Free Software
29
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
30
 *
31
 * For more information, contact:
32
 *
33
 *  Generalitat Valenciana
34
 *   Conselleria d'Infraestructures i Transport
35
 *   Av. Blasco Ib??ez, 50
36
 *   46010 VALENCIA
37
 *   SPAIN
38
 *
39
 *      +34 963862235
40
 *   gvsig@gva.es
41
 *      www.gvsig.gva.es
42
 *
43
 *    or
44
 *
45
 *   IVER T.I. S.A
46
 *   Salamanca 50
47
 *   46005 Valencia
48
 *   Spain
49
 *
50
 *   +34 963163400
51
 *   dac@iver.es
52
 */
53
/* CVS MESSAGES:
54
 *
55
 * $Id$
56
 * $Log$
57
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
58
 * *** empty log message ***
59
 *
60
 *
61
 */
62
/**
63
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
64
 */
65
public class SelectServerWindow extends SelectServerControlsPanel implements IWindow {
66
	WindowInfo mWindowInfo = null;
67
	
68
	public SelectServerWindow(){
69
		super();
70
		addButtonsListener(new SelectServerWindowListener(this));
71
		initialize();
72
	}
73
	
74
	/**
75
	 * Initializes the panel
76
	 */
77
	private void initialize(){
78
		fillCombos();
79
		loadServers();
80
	}
81
	
82
	/**
83
	 * Fills all the static combos
84
	 *
85
	 */
86
	private void fillCombos(){
87
		String[] brands = Servers.getServerNames();
88
		setServerBrands(brands);
89
		String[] types = Servers.getServerTypes();
90
		setServerTypes(types);
91
		
92
	}
93
	
94
	/**
95
	 * Load the servers saved in plugins-persistence
96
	 */
97
	private void loadServers(){
98
		ServerDataPersistence persistence = new ServerDataPersistence(this,ServerData.SERVER_TYPE_WMS);
99
		ServerData[] servers = persistence.getArrayOfServerData_();
100
		if (servers.length > 0){
101
			setServersList(servers);
102
		}
103
	}
104
	
105
	/*
106
	 *  (non-Javadoc)
107
	 * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
108
	 */
109
	public WindowInfo getWindowInfo() {
110
		if (mWindowInfo == null){
111
			mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
112
			mWindowInfo.setTitle("select_publish_server");
113
			mWindowInfo.setHeight(117);
114
			mWindowInfo.setWidth(410);
115
        }
116
        return mWindowInfo;
117
	}
118

  
119
}
0 120

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/OptionsServerControlsPanel.java
1
package com.iver.cit.gvsig.publish.gui;
2

  
3
import java.awt.FlowLayout;
4

  
5
import javax.swing.JPanel;
6
import java.awt.CardLayout;
7
import java.awt.Dimension;
8
import java.awt.GridBagLayout;
9
import java.awt.GridBagConstraints;
10
import javax.swing.JButton;
11

  
12
import com.iver.andami.PluginServices;
13

  
14
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
15
 *
16
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
17
 *
18
 * This program is free software; you can redistribute it and/or
19
 * modify it under the terms of the GNU General Public License
20
 * as published by the Free Software Foundation; either version 2
21
 * of the License, or (at your option) any later version.
22
 *
23
 * This program is distributed in the hope that it will be useful,
24
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
 * GNU General Public License for more details.
27
 *
28
 * You should have received a copy of the GNU General Public License
29
 * along with this program; if not, write to the Free Software
30
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
31
 *
32
 * For more information, contact:
33
 *
34
 *  Generalitat Valenciana
35
 *   Conselleria d'Infraestructures i Transport
36
 *   Av. Blasco Ib??ez, 50
37
 *   46010 VALENCIA
38
 *   SPAIN
39
 *
40
 *      +34 963862235
41
 *   gvsig@gva.es
42
 *      www.gvsig.gva.es
43
 *
44
 *    or
45
 *
46
 *   IVER T.I. S.A
47
 *   Salamanca 50
48
 *   46005 Valencia
49
 *   Spain
50
 *
51
 *   +34 963163400
52
 *   dac@iver.es
53
 */
54
/* CVS MESSAGES:
55
 *
56
 * $Id$
57
 * $Log$
58
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
59
 * *** empty log message ***
60
 *
61
 *
62
 */
63
/**
64
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
65
 */
66
public class OptionsServerControlsPanel extends JPanel{
67

  
68
	private JPanel serverOptionsPanel = null;
69
	private JPanel buttonsPanel = null;
70
	private JButton lastButton = null;
71
	private JButton acceptButton = null;
72

  
73
	/**
74
	 * This method initializes 
75
	 * 
76
	 */
77
	public OptionsServerControlsPanel() {
78
		super();
79
		initialize();
80
	}
81

  
82
	/**
83
	 * This method initializes this
84
	 * 
85
	 */
86
	private void initialize() {
87
        this.setLayout(new FlowLayout());
88
        this.add(getServerOptionsPanel(), null);
89
        this.add(getButtonsPanel(), null);
90
			
91
	}
92

  
93
	/**
94
	 * This method initializes serverOptionsPanel	
95
	 * 	
96
	 * @return javax.swing.JPanel	
97
	 */
98
	private JPanel getServerOptionsPanel() {
99
		if (serverOptionsPanel == null) {
100
			serverOptionsPanel = new JPanel();
101
			serverOptionsPanel.setName("serverOptionsPanel");
102
		}
103
		return serverOptionsPanel;
104
	}
105

  
106
	/**
107
	 * This method initializes buttonsPanel	
108
	 * 	
109
	 * @return javax.swing.JPanel	
110
	 */
111
	private JPanel getButtonsPanel() {
112
		if (buttonsPanel == null) {
113
			FlowLayout flowLayout = new FlowLayout();
114
			flowLayout.setAlignment(java.awt.FlowLayout.RIGHT);
115
			buttonsPanel = new JPanel();
116
			buttonsPanel.setPreferredSize(new java.awt.Dimension(400,30));
117
			buttonsPanel.setName("buttonsPanel");
118
			buttonsPanel.setLayout(flowLayout);			
119
			buttonsPanel.add(getLastButton(), null);
120
			buttonsPanel.add(getAcceptButton(), null);
121
		}
122
		return buttonsPanel;
123
	}
124

  
125
	/**
126
	 * This method initializes lastButton	
127
	 * 	
128
	 * @return javax.swing.JButton	
129
	 */
130
	private JButton getLastButton() {
131
		if (lastButton == null) {
132
			lastButton = new JButton();
133
			lastButton.setText(PluginServices.getText(this, "last"));
134
			lastButton.setPreferredSize(new Dimension(100,20));
135
			lastButton.setActionCommand("last");
136
		}
137
		return lastButton;
138
	}
139

  
140
	/**
141
	 * This method initializes acceptButton	
142
	 * 	
143
	 * @return javax.swing.JButton	
144
	 */
145
	private JButton getAcceptButton() {
146
		if (acceptButton == null) {
147
			acceptButton = new JButton();
148
			acceptButton.setText(PluginServices.getText(this, "accept"));
149
			acceptButton.setPreferredSize(new Dimension(100,20));
150
			acceptButton.setActionCommand("accept");
151
		}
152
		return acceptButton;
153
	}
154

  
155
}
0 156

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/SelectServerPanel.java
1
package com.iver.cit.gvsig.publish.gui;
2

  
3
import javax.swing.DefaultComboBoxModel;
4
import javax.swing.JPanel;
5
import java.awt.GridBagLayout;
6
import java.awt.GridBagConstraints;
7
import java.awt.Insets;
8

  
9
import javax.swing.JComboBox;
10

  
11
import com.iver.andami.PluginServices;
12
import com.iver.andami.persistence.serverData.ServerDataPersistence;
13
import com.iver.utiles.NotExistInXMLEntity;
14
import com.iver.utiles.XMLEntity;
15
import com.iver.utiles.swing.jcomboServer.JComboServer;
16
import com.iver.utiles.swing.jcomboServer.ServerData;
17
import javax.swing.JLabel;
18
import javax.swing.JTextField;
19
import java.awt.FlowLayout;
20

  
21
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
22
 *
23
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
24
 *
25
 * This program is free software; you can redistribute it and/or
26
 * modify it under the terms of the GNU General Public License
27
 * as published by the Free Software Foundation; either version 2
28
 * of the License, or (at your option) any later version.
29
 *
30
 * This program is distributed in the hope that it will be useful,
31
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33
 * GNU General Public License for more details.
34
 *
35
 * You should have received a copy of the GNU General Public License
36
 * along with this program; if not, write to the Free Software
37
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
38
 *
39
 * For more information, contact:
40
 *
41
 *  Generalitat Valenciana
42
 *   Conselleria d'Infraestructures i Transport
43
 *   Av. Blasco Ib??ez, 50
44
 *   46010 VALENCIA
45
 *   SPAIN
46
 *
47
 *      +34 963862235
48
 *   gvsig@gva.es
49
 *      www.gvsig.gva.es
50
 *
51
 *    or
52
 *
53
 *   IVER T.I. S.A
54
 *   Salamanca 50
55
 *   46005 Valencia
56
 *   Spain
57
 *
58
 *   +34 963163400
59
 *   dac@iver.es
60
 */
61
/* CVS MESSAGES:
62
 *
63
 * $Id$
64
 * $Log$
65
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
66
 * *** empty log message ***
67
 *
68
 *
69
 */
70
/**
71
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
72
 */
73
public class SelectServerPanel extends JPanel{
74

  
75
	private JPanel serverNamePanel = null;
76
	private JPanel serverOptionsPanel = null;
77
	private JComboServer cmbServer = null;
78
	private JComboBox cmbServerName = null;
79
	private JComboBox cmbServerType = null;
80
	private JLabel lbUrl = null;
81
	private JLabel lbServerName = null;
82
	private JLabel lbServerType = null;
83
	private JPanel serverPathPanel = null;
84
	private JLabel lbPath = null;
85
	private JTextField tbPath = null;
86

  
87
	/**
88
	 * This method initializes 
89
	 * 
90
	 */
91
	public SelectServerPanel() {
92
		super();
93
		initialize();
94
	}
95

  
96
	/**
97
	 * This method initializes this
98
	 * 
99
	 */
100
	private void initialize() {
101
        this.setLayout(new FlowLayout());
102
        this.setPreferredSize(new java.awt.Dimension(400,90));
103
        this.setSize(new java.awt.Dimension(400,90));
104
        this.add(getServerNamePanel(), null);
105
        this.add(getServerOptionsPanel(), null);
106
        this.add(getServerPathPanel(), null);
107
			
108
	}
109

  
110
	/**
111
	 * This method initializes serverNamePanel	
112
	 * 	
113
	 * @return javax.swing.JPanel	
114
	 */
115
	private JPanel getServerNamePanel() {
116
		if (serverNamePanel == null) {
117
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
118
			gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL;
119
			gridBagConstraints3.gridx = 1;
120
			gridBagConstraints3.gridy = 0;
121
			gridBagConstraints3.insets = new Insets(0,5,0,5);
122
			gridBagConstraints3.weightx = 1.0;
123
			GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
124
			gridBagConstraints2.gridy = 0;
125
			gridBagConstraints2.gridx = 0;
126
			gridBagConstraints2.insets = new Insets(0,5,0,5);
127
			lbUrl = new JLabel();
128
			lbUrl.setText(PluginServices.getText(this, "url"));
129
			serverNamePanel = new JPanel();
130
			serverNamePanel.setLayout(new GridBagLayout());
131
			serverNamePanel.setPreferredSize(new java.awt.Dimension(400,22));
132
			serverNamePanel.setSize(new java.awt.Dimension(400,22));
133
			serverNamePanel.add(lbUrl, gridBagConstraints2);
134
			serverNamePanel.add(getServerCombo(), gridBagConstraints3);
135
		}
136
		return serverNamePanel;
137
	}
138

  
139
	/**
140
	 * This method initializes rerverOptionsPanel	
141
	 * 	
142
	 * @return javax.swing.JPanel	
143
	 */
144
	private JPanel getServerOptionsPanel() {
145
		if (serverOptionsPanel == null) {
146
			lbServerType = new JLabel();
147
			lbServerType.setText(PluginServices.getText(this, "serverName"));
148
			lbServerType.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
149
			lbServerName = new JLabel();
150
			lbServerName.setText(PluginServices.getText(this, "serverType"));
151
			lbServerName.setPreferredSize(new java.awt.Dimension(45,16));
152
			GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
153
			gridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL;
154
			gridBagConstraints7.gridx = 3;
155
			gridBagConstraints7.gridy = 0;
156
			gridBagConstraints7.weightx = 1.0;
157
			gridBagConstraints7.insets = new java.awt.Insets(5,5,5,5);
158
			GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
159
			gridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;
160
			gridBagConstraints6.gridx = 2;
161
			gridBagConstraints6.gridy = 0;
162
			gridBagConstraints6.weightx = 1.0;
163
			gridBagConstraints6.insets = new java.awt.Insets(5,5,5,5);
164
			GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
165
			gridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL;
166
			gridBagConstraints5.gridx = 1;
167
			gridBagConstraints5.gridy = 0;
168
			gridBagConstraints5.insets = new java.awt.Insets(5,5,5,5);
169
			gridBagConstraints5.weightx = 1.0;			
170
			GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
171
			gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;
172
			gridBagConstraints4.gridx = 0;
173
			gridBagConstraints4.gridy = 0;
174
			gridBagConstraints4.insets = new java.awt.Insets(5,5,5,5);
175
			gridBagConstraints4.weightx = 0.5;				
176
			serverOptionsPanel = new JPanel();
177
			serverOptionsPanel.setLayout(new GridBagLayout());
178
			serverOptionsPanel.setPreferredSize(new java.awt.Dimension(400,22));
179
			serverOptionsPanel.setSize(new java.awt.Dimension(400,22));
180
			serverOptionsPanel.add(lbServerName, gridBagConstraints4);
181
			serverOptionsPanel.add(getCmbServerName(), gridBagConstraints5);
182
			serverOptionsPanel.add(lbServerType, gridBagConstraints6);
183
			serverOptionsPanel.add(getCmbServerType(), gridBagConstraints7);
184
		}
185
		return serverOptionsPanel;
186
	}
187

  
188
	/**
189
	 * This method initializes serverCombo	
190
	 * 	
191
	 * @return javax.swing.JComboBox	
192
	 */
193
	protected JComboServer getServerCombo() {
194
		if (cmbServer == null) {
195
			cmbServer = new JComboServer();
196
			cmbServer.setModel(new DefaultComboBoxModel());
197
			cmbServer.setPreferredSize(new java.awt.Dimension(350, 20));
198
			cmbServer.setEditable(true);
199
		}
200
		return cmbServer;
201
	}
202

  
203
	/**
204
	 * This method initializes serverNameCombo	
205
	 * 	
206
	 * @return javax.swing.JComboBox	
207
	 */
208
	protected JComboBox getCmbServerName() {
209
		if (cmbServerName == null) {
210
			cmbServerName = new JComboBox();
211
			cmbServerName.setModel(new DefaultComboBoxModel());
212
			cmbServerName.setPreferredSize(new java.awt.Dimension(295, 20));
213
		}
214
		return cmbServerName;
215
	}
216

  
217
	/**
218
	 * This method initializes serverTypeCombo	
219
	 * 	
220
	 * @return javax.swing.JComboBox	
221
	 */
222
	protected JComboBox getCmbServerType() {
223
		if (cmbServerType == null) {
224
			cmbServerType = new JComboBox();
225
			cmbServerType.setModel(new DefaultComboBoxModel());
226
			cmbServerType.setPreferredSize(new java.awt.Dimension(50, 20));
227
		}
228
		return cmbServerType;
229
	}
230

  
231
	/**
232
	 * This method initializes serverPathPanel	
233
	 * 	
234
	 * @return javax.swing.JPanel	
235
	 */
236
	private JPanel getServerPathPanel() {
237
		if (serverPathPanel == null) {
238
			GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
239
			gridBagConstraints10.fill = java.awt.GridBagConstraints.HORIZONTAL;
240
			gridBagConstraints10.gridx = 1;
241
			gridBagConstraints10.gridy = 0;
242
			gridBagConstraints10.weightx = 1.0;
243
			gridBagConstraints10.insets = new java.awt.Insets(5,5,5,5);
244
			GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
245
			gridBagConstraints9.insets = new java.awt.Insets(5,5,5,5);
246
			gridBagConstraints9.gridy = 0;
247
			gridBagConstraints9.gridx = 0;
248
			lbPath = new JLabel();
249
			lbPath.setText(PluginServices.getText(this, "server_path"));
250
			serverPathPanel = new JPanel();
251
			serverPathPanel.setLayout(new GridBagLayout());
252
			serverPathPanel.setPreferredSize(new java.awt.Dimension(400,22));
253
			serverPathPanel.add(lbPath, gridBagConstraints9);
254
			serverPathPanel.add(getTbPath(), gridBagConstraints10);
255
		}
256
		return serverPathPanel;
257
	}
258

  
259
	/**
260
	 * This method initializes tbPath	
261
	 * 	
262
	 * @return javax.swing.JTextField	
263
	 */
264
	private JTextField getTbPath() {
265
		if (tbPath == null) {
266
			tbPath = new JTextField();
267
		}
268
		return tbPath;
269
	}
270
	
271
}  //  @jve:decl-index=0:visual-constraint="10,10"
0 272

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/comboServer/ServerDataPersistence.java
1
package com.iver.cit.gvsig.publish.gui.comboServer;
2

  
3
import java.util.Date;
4

  
5
import com.iver.utiles.DateTime;
6
import com.iver.utiles.NotExistInXMLEntity;
7
import com.iver.utiles.XMLEntity;
8

  
9
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
10
 *
11
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
12
 *
13
 * This program is free software; you can redistribute it and/or
14
 * modify it under the terms of the GNU General Public License
15
 * as published by the Free Software Foundation; either version 2
16
 * of the License, or (at your option) any later version.
17
 *
18
 * This program is distributed in the hope that it will be useful,
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 * GNU General Public License for more details.
22
 *
23
 * You should have received a copy of the GNU General Public License
24
 * along with this program; if not, write to the Free Software
25
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
26
 *
27
 * For more information, contact:
28
 *
29
 *  Generalitat Valenciana
30
 *   Conselleria d'Infraestructures i Transport
31
 *   Av. Blasco Ib??ez, 50
32
 *   46010 VALENCIA
33
 *   SPAIN
34
 *
35
 *      +34 963862235
36
 *   gvsig@gva.es
37
 *      www.gvsig.gva.es
38
 *
39
 *    or
40
 *
41
 *   IVER T.I. S.A
42
 *   Salamanca 50
43
 *   46005 Valencia
44
 *   Spain
45
 *
46
 *   +34 963163400
47
 *   dac@iver.es
48
 */
49
/* CVS MESSAGES:
50
 *
51
 * $Id$
52
 * $Log$
53
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
54
 * *** empty log message ***
55
 *
56
 *
57
 */
58
/**
59
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
60
 */
61
public class ServerDataPersistence extends com.iver.andami.persistence.serverData.ServerDataPersistence{
62

  
63
	public ServerDataPersistence(Object pluginClassInstance, String serviceType) {
64
		super(pluginClassInstance, serviceType);		
65
	}
66
	
67
	/**
68
	 * This method creates and returns a new XMLEntity.
69
	 * @param server
70
	 * ServerData with all the server information
71
	 * @return
72
	 * XMLEntity
73
	 */
74
	public XMLEntity serverDataToXml_(ServerData server){
75
		String dFormat="Y-m-d H:i:s.Z";
76

  
77
		XMLEntity xmlEnt = new XMLEntity();
78
		xmlEnt.putProperty("serverURL",server.getServerAddress());
79
		xmlEnt.putProperty("added",DateTime.dateToString(server.getAdded(),dFormat));
80
		xmlEnt.putProperty("lastAccess",DateTime.dateToString(server.getLastAccess(),dFormat));
81
		xmlEnt.putProperty("type",server.getServiceType());
82
		xmlEnt.putProperty("subType",server.getServiceSubType());
83
		xmlEnt.putProperty("name",server.getServerName());
84
		
85
		return xmlEnt;
86
	}
87

  
88
	/**
89
	 * This method returns an array of ServerData objects that
90
	 * have been saved using the Andami persistence model.
91
	 * @return
92
	 * String[]
93
	 */
94
	public ServerData[] getArrayOfServerData_(){
95
		ServerData[] servers = new ServerData[xml.getChildrenCount()];
96
		for (int i=0 ; i<xml.getChildrenCount() ; i++){
97
			servers[i] = xmlToServerData_(xml.getChild(i));
98
		}
99
		return servers;
100
	}
101
	
102
	/**
103
	 * This method creates a new serverData from a XMLEntity
104
	 * @param xmlEnt
105
	 * XMLRntity that contains the server information
106
	 * @return
107
	 * ServerData
108
	 */
109
	public ServerData xmlToServerData_(XMLEntity xmlEnt){
110
		String serverAddress;
111
		Date added;
112
		Date lastAccess;
113
		String serviceType = "";
114
		String serviceSubType = "";
115
		String name = "";
116

  
117
		serverAddress = xmlEnt.getStringProperty("serverURL");
118
		added = DateTime.stringToDate(xmlEnt.getStringProperty("added"));
119
		lastAccess = DateTime.stringToDate(xmlEnt.getStringProperty("lastAccess"));
120
		serviceType = xmlEnt.getStringProperty("type").toUpperCase();
121
		serviceSubType = xmlEnt.getStringProperty("subType").toUpperCase();
122
		name = xmlEnt.getStringProperty("name");
123
		return new ServerData(serverAddress,added,lastAccess,serviceType,serviceSubType,name);
124
	}
125

  
126
}
0 127

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/comboServer/ServerData.java
1
package com.iver.cit.gvsig.publish.gui.comboServer;
2

  
3
import java.util.Date;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
6
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
9
 * This program is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU General Public License
11
 * as published by the Free Software Foundation; either version 2
12
 * of the License, or (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
44
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id$
48
 * $Log$
49
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
50
 * *** empty log message ***
51
 *
52
 *
53
 */
54
/**
55
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
56
 */
57
public class ServerData extends com.iver.utiles.swing.jcomboServer.ServerData{
58
	private String serverName = null;
59
	
60
	public ServerData(String serverAddress, Date added, Date lastAccess, String serviceType, String serviceSubType,String serverName) {
61
		super(serverAddress, added, lastAccess, serviceType, serviceSubType);
62
		this.serverName = serverName;
63
	}
64

  
65
	/**
66
	 * @return Returns the serverName.
67
	 */
68
	public String getServerName() {
69
		return serverName;
70
	}
71

  
72
	/**
73
	 * @param serverName The serverName to set.
74
	 */
75
	public void setServerName(String serverName) {
76
		this.serverName = serverName;
77
	}
78

  
79
}
0 80

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/listeners/SelectServerWindowListener.java
1
package com.iver.cit.gvsig.publish.gui.listeners;
2

  
3
import java.awt.event.ActionEvent;
4
import java.awt.event.ActionListener;
5

  
6
import com.iver.andami.PluginServices;
7
import com.iver.cit.gvsig.publish.PublishWMSControler;
8
import com.iver.cit.gvsig.publish.gui.MapserverPanel;
9
import com.iver.cit.gvsig.publish.gui.OptionsServerWindow;
10
import com.iver.cit.gvsig.publish.gui.SelectServerWindow;
11

  
12
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
13
 *
14
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
15
 *
16
 * This program is free software; you can redistribute it and/or
17
 * modify it under the terms of the GNU General Public License
18
 * as published by the Free Software Foundation; either version 2
19
 * of the License, or (at your option) any later version.
20
 *
21
 * This program is distributed in the hope that it will be useful,
22
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 * GNU General Public License for more details.
25
 *
26
 * You should have received a copy of the GNU General Public License
27
 * along with this program; if not, write to the Free Software
28
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
29
 *
30
 * For more information, contact:
31
 *
32
 *  Generalitat Valenciana
33
 *   Conselleria d'Infraestructures i Transport
34
 *   Av. Blasco Ib??ez, 50
35
 *   46010 VALENCIA
36
 *   SPAIN
37
 *
38
 *      +34 963862235
39
 *   gvsig@gva.es
40
 *      www.gvsig.gva.es
41
 *
42
 *    or
43
 *
44
 *   IVER T.I. S.A
45
 *   Salamanca 50
46
 *   46005 Valencia
47
 *   Spain
48
 *
49
 *   +34 963163400
50
 *   dac@iver.es
51
 */
52
/* CVS MESSAGES:
53
 *
54
 * $Id$
55
 * $Log$
56
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
57
 * *** empty log message ***
58
 *
59
 *
60
 */
61
/**
62
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
63
 */
64
public class SelectServerWindowListener implements ActionListener {
65
	private SelectServerWindow mainWindow = null;
66
	
67
	public SelectServerWindowListener(SelectServerWindow mainWindow) {
68
		super();
69
		this.mainWindow = mainWindow;
70
	}
71
	
72
	/*
73
	 *  (non-Javadoc)
74
	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
75
	 */
76
	public void actionPerformed(ActionEvent e) {
77
		if (e.getActionCommand().equals("next")){
78
			PluginServices.getMDIManager().addCentredWindow(new OptionsServerWindow(mainWindow));
79
			PluginServices.getMDIManager().closeWindow(mainWindow);
80
		}
81
	}
82
}
0 83

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/listeners/OptionsServerListener.java
1
package com.iver.cit.gvsig.publish.gui.listeners;
2

  
3
import java.awt.event.ActionEvent;
4
import java.awt.event.ActionListener;
5

  
6
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
7
 *
8
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
23
 *
24
 * For more information, contact:
25
 *
26
 *  Generalitat Valenciana
27
 *   Conselleria d'Infraestructures i Transport
28
 *   Av. Blasco Ib??ez, 50
29
 *   46010 VALENCIA
30
 *   SPAIN
31
 *
32
 *      +34 963862235
33
 *   gvsig@gva.es
34
 *      www.gvsig.gva.es
35
 *
36
 *    or
37
 *
38
 *   IVER T.I. S.A
39
 *   Salamanca 50
40
 *   46005 Valencia
41
 *   Spain
42
 *
43
 *   +34 963163400
44
 *   dac@iver.es
45
 */
46
/* CVS MESSAGES:
47
 *
48
 * $Id$
49
 * $Log$
50
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
51
 * *** empty log message ***
52
 *
53
 *
54
 */
55
/**
56
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
57
 */
58
public class OptionsServerListener implements ActionListener{
59

  
60
	/*
61
	 *  (non-Javadoc)
62
	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
63
	 */
64
	public void actionPerformed(ActionEvent e) {
65
		// TODO Auto-generated method stub
66
		
67
	}
68

  
69
}
0 70

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/OptionsServerWindow.java
1
package com.iver.cit.gvsig.publish.gui;
2

  
3
import com.iver.andami.ui.mdiManager.IWindow;
4
import com.iver.andami.ui.mdiManager.WindowInfo;
5
import com.iver.cit.gvsig.fmap.core.gt2.factory.OptionalFactory;
6

  
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
47
/* CVS MESSAGES:
48
 *
49
 * $Id$
50
 * $Log$
51
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
52
 * *** empty log message ***
53
 *
54
 *
55
 */
56
/**
57
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
58
 */
59
public class OptionsServerWindow extends OptionsServerControlsPanel implements IWindow{
60
	WindowInfo mWindowInfo = null;
61
	SelectServerWindow selectServerWindow = null;
62
	
63
	public OptionsServerWindow(SelectServerWindow selectServerWindow) {
64
		this.selectServerWindow = selectServerWindow;
65
		
66
	}
67

  
68
	/*
69
	 *  (non-Javadoc)
70
	 * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
71
	 */
72
	public WindowInfo getWindowInfo() {
73
		if (mWindowInfo == null){
74
			mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
75
			mWindowInfo.setTitle("select_publish_server");
76
			mWindowInfo.setHeight(117);
77
			mWindowInfo.setWidth(410);
78
        }
79
        return mWindowInfo;
80
	}
81

  
82
}
0 83

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/SelectServerControlsPanel.java
1
package com.iver.cit.gvsig.publish.gui;
2

  
3
import java.awt.Dimension;
4
import java.awt.FlowLayout;
5
import java.awt.event.ActionListener;
6

  
7
import javax.swing.JPanel;
8

  
9
import org.gvsig.gui.beans.swing.JButton;
10

  
11
import com.iver.andami.PluginServices;
12
import com.iver.cit.gvsig.publish.gui.comboServer.ServerData;
13

  
14
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
15
 *
16
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
17
 *
18
 * This program is free software; you can redistribute it and/or
19
 * modify it under the terms of the GNU General Public License
20
 * as published by the Free Software Foundation; either version 2
21
 * of the License, or (at your option) any later version.
22
 *
23
 * This program is distributed in the hope that it will be useful,
24
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
 * GNU General Public License for more details.
27
 *
28
 * You should have received a copy of the GNU General Public License
29
 * along with this program; if not, write to the Free Software
30
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
31
 *
32
 * For more information, contact:
33
 *
34
 *  Generalitat Valenciana
35
 *   Conselleria d'Infraestructures i Transport
36
 *   Av. Blasco Ib??ez, 50
37
 *   46010 VALENCIA
38
 *   SPAIN
39
 *
40
 *      +34 963862235
41
 *   gvsig@gva.es
42
 *      www.gvsig.gva.es
43
 *
44
 *    or
45
 *
46
 *   IVER T.I. S.A
47
 *   Salamanca 50
48
 *   46005 Valencia
49
 *   Spain
50
 *
51
 *   +34 963163400
52
 *   dac@iver.es
53
 */
54
/* CVS MESSAGES:
55
 *
56
 * $Id$
57
 * $Log$
58
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
59
 * *** empty log message ***
60
 *
61
 *
62
 */
63
/**
64
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
65
 */
66
public class SelectServerControlsPanel extends JPanel {
67

  
68
	private SelectServerPanel controlsPanel = null;
69
	private JPanel buttonsPanel = null;
70
	private JButton nextButton = null;
71
	/**
72
	 * This method initializes 
73
	 * 
74
	 */
75
	public SelectServerControlsPanel() {
76
		super();
77
		initialize();
78
	}
79

  
80
	/**
81
	 * This method initializes this
82
	 * 
83
	 */
84
	private void initialize() {
85
        this.setLayout(new FlowLayout());
86
        this.setSize(new java.awt.Dimension(405,136));
87
        this.add(getControlsPanel(), null);
88
        this.add(getButtonsPanel(), null);
89
			
90
	}
91

  
92
	/**
93
	 * This method initializes controlsPanel	
94
	 * 	
95
	 * @return javax.swing.JPanel	
96
	 */
97
	private SelectServerPanel getControlsPanel() {
98
		if (controlsPanel == null) {
99
			controlsPanel = new SelectServerPanel();
100
		}
101
		return controlsPanel;
102
	}
103

  
104
	/**
105
	 * This method initializes buttonsPanel	
106
	 * 	
107
	 * @return javax.swing.JPanel	
108
	 */
109
	private JPanel getButtonsPanel() {
110
		if (buttonsPanel == null) {
111
			FlowLayout flowLayout = new FlowLayout();
112
			flowLayout.setAlignment(java.awt.FlowLayout.RIGHT);
113
			buttonsPanel = new JPanel();
114
			buttonsPanel.setPreferredSize(new java.awt.Dimension(400,30));
115
			buttonsPanel.setLayout(flowLayout);
116
			buttonsPanel.add(getNextButton(), null);
117
		}
118
		return buttonsPanel;
119
	}
120

  
121
	/**
122
	 * This method initializes nextButton	
123
	 * 	
124
	 * @return javax.swing.JButton	
125
	 */
126
	private JButton getNextButton() {
127
		if (nextButton == null) {
128
			nextButton = new JButton();
129
			nextButton.setText(PluginServices.getText(this, "next"));
130
			nextButton.setPreferredSize(new Dimension(100,20));
131
			nextButton.setActionCommand("next");
132
		}
133
		return nextButton;
134
	}
135
	
136
	public void setServerBrands(String[] brands){
137
		for (int i=0 ; i<brands.length ; i++){
138
			getControlsPanel().getCmbServerName().addItem(brands[i]);
139
		}	
140
	}
141
	
142
	public void setServerTypes(String[] types){
143
		for (int i=0 ; i<types.length ; i++){
144
			getControlsPanel().getCmbServerType().addItem(types[i]);
145
		}	
146
	}
147
	
148
	public void setServersList(ServerData[] servers){
149
		getControlsPanel().getServerCombo().setServerList(servers);
150
	}
151
	
152
	public void addButtonsListener(ActionListener listener){
153
		getNextButton().addActionListener(listener);
154
	}
155
	
156

  
157
}  //  @jve:decl-index=0:visual-constraint="10,10"
0 158

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/Servers.java
1
package com.iver.cit.gvsig.publish;
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
 *
4
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 *  Generalitat Valenciana
23
 *   Conselleria d'Infraestructures i Transport
24
 *   Av. Blasco Ib??ez, 50
25
 *   46010 VALENCIA
26
 *   SPAIN
27
 *
28
 *      +34 963862235
29
 *   gvsig@gva.es
30
 *      www.gvsig.gva.es
31
 *
32
 *    or
33
 *
34
 *   IVER T.I. S.A
35
 *   Salamanca 50
36
 *   46005 Valencia
37
 *   Spain
38
 *
39
 *   +34 963163400
40
 *   dac@iver.es
41
 */
42
/* CVS MESSAGES:
43
 *
44
 * $Id$
45
 * $Log$
46
 * Revision 1.1  2006-08-31 19:19:04  jorpiell
47
 * *** empty log message ***
48
 *
49
 *
50
 */
51
/**
52
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
53
 */
54
public class Servers {
55
	public static final String SERVER_NAME_MAPSERVER = "Mapserver";
56
	public static final String SERVER_NAME_GEOSERVER = "Geserver";
57
	
58
	public static final String SERVER_TYPE_WFS = "WMS";
59
	public static final String SERVER_TYPE_WMS = "WFS";
60
	
61
	public static String[] getServerNames(){
62
		String[] names = new String[2];
63
		names[0] = SERVER_NAME_MAPSERVER;
64
		names[1] = SERVER_NAME_GEOSERVER;
65
		return names;
66
	}
67
	
68
	public static String[] getServerTypes(){
69
		String[] types = new String[2];
70
		types[0] = SERVER_TYPE_WFS;
71
		types[1] = SERVER_TYPE_WMS;
72
		return types;
73
	}
74
	
75
}
0 76

  
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/servers/GenericServer.java
1
package com.iver.cit.gvsig.publish.servers;
2

  
3
import java.util.Set;
4
import java.util.TreeMap;
5

  
6
import javax.swing.JPanel;
7

  
8
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
9
 *
10
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
11
 *
12
 * This program is free software; you can redistribute it and/or
13
 * modify it under the terms of the GNU General Public License
14
 * as published by the Free Software Foundation; either version 2
15
 * of the License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
25
 *
26
 * For more information, contact:
27
 *
28
 *  Generalitat Valenciana
29
 *   Conselleria d'Infraestructures i Transport
30
 *   Av. Blasco Ib??ez, 50
31
 *   46010 VALENCIA
32
 *   SPAIN
33
 *
34
 *      +34 963862235
35
 *   gvsig@gva.es
36
 *      www.gvsig.gva.es
37
 *
38
 *    or
39
 *
40
 *   IVER T.I. S.A
41
 *   Salamanca 50
42
 *   46005 Valencia
43
 *   Spain
44
 *
45
 *   +34 963163400
46
 *   dac@iver.es
47
 */
48
/* CVS MESSAGES:
49
 *
50
 * $Id$
51
 * $Log$
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff