Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extCatalogAndGazetteer / src / es / gva / cit / gvsig / catalog / gui / ServerPropertiesDialog.java @ 15557

History | View | Annotate | Download (2.91 KB)

1
package es.gva.cit.gvsig.catalog.gui;
2

    
3
import org.gvsig.i18n.Messages;
4

    
5
import com.iver.andami.PluginServices;
6
import com.iver.andami.ui.mdiManager.IWindow;
7
import com.iver.andami.ui.mdiManager.WindowInfo;
8
import com.iver.utiles.swing.jcomboServer.ServerData;
9

    
10
import es.gva.cit.catalog.CatalogClient;
11
import es.gva.cit.catalog.drivers.profiles.IProfile;
12
import es.gva.cit.catalog.ui.serverproperties.ServerPropertiesDialogPanel;
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
 *
59
 */
60
/**
61
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
62
 */
63
public class ServerPropertiesDialog extends ServerPropertiesDialogPanel implements IWindow {
64
        private WindowInfo m_windowinfo = null;
65
        
66
        public ServerPropertiesDialog(ServerData serverData, CatalogClient client, 
67
                        IProfile profile, Object parentFrame) {
68
                super(serverData, client, profile, parentFrame);                
69
        }
70

    
71
        /*
72
         * (non-Javadoc)
73
         * @see es.gva.cit.catalog.ui.serverproperties.ServerPropertiesDialogPanel#closeButtonActionPerformed()
74
         */
75
        protected void closeButtonActionPerformed() {        
76
                client.setServerData(updateServerData());
77
                PluginServices.getMDIManager().closeWindow(this);
78
        } 
79
        
80
        /*
81
         * (non-Javadoc)
82
         * @see es.gva.cit.catalog.ui.serverproperties.ServerPropertiesDialogPanel#cancelButtonActionPerformed()
83
         */
84
        protected void cancelButtonActionPerformed() {        
85
                PluginServices.getMDIManager().closeWindow(this);
86
        } 
87

    
88
        
89
        /*
90
         * (non-Javadoc)
91
         * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
92
         */
93
        public WindowInfo getWindowInfo() {
94
                if (m_windowinfo == null){
95
                        m_windowinfo = new WindowInfo(WindowInfo.MODALDIALOG);
96
                        m_windowinfo.setTitle(Messages.getText("propertiesNameWindow"));
97
                        m_windowinfo.setWidth(500);
98
                        m_windowinfo.setHeight(280);
99
                }
100
                return m_windowinfo;
101
        }
102

    
103
}