Statistics
| Revision:

gvsig-catalog / trunk / extCatalog / src / org / gvsig / catalog / gui / ServerPropertiesDialog.java @ 6

History | View | Annotate | Download (2.98 KB)

1
package org.gvsig.catalog.gui;
2

    
3
import org.gvsig.andami.PluginServices;
4
import org.gvsig.andami.ui.mdiManager.IWindow;
5
import org.gvsig.andami.ui.mdiManager.WindowInfo;
6
import org.gvsig.catalog.CatalogClient;
7
import org.gvsig.catalog.drivers.profiles.IProfile;
8
import org.gvsig.catalog.ui.serverproperties.ServerPropertiesDialogPanel;
9
import org.gvsig.i18n.Messages;
10
import org.gvsig.utils.swing.jcomboServer.ServerData;
11

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

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

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

    
105
}