root / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / gui / listeners / SelectServerWindowListener.java @ 6956
History | View | Annotate | Download (2.33 KB)
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: SelectServerWindowListener.java 6956 2006-08-31 19:19:38Z jorpiell $
|
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 |
} |