Statistics
| Revision:

root / branches / CatalogYNomenclator_v1_1_0_1005 / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / ui / serverconnect / ServerConnectPanel.java @ 12758

History | View | Annotate | Download (2.46 KB)

1
package es.gva.cit.gazetteer.ui.serverconnect;
2

    
3
import es.gva.cit.catalogClient.drivers.ICatalogServiceDriver;
4
import es.gva.cit.catalogClient.utils.CatalogDriverRegister;
5
import es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver;
6
import es.gva.cit.gazetteer.utils.GazetteerDriverRegister;
7

    
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: ServerConnectPanel.java 12758 2007-07-24 11:25:43Z jorpiell $
52
 * $Log$
53
 * Revision 1.1.2.5  2007-07-24 11:25:42  jorpiell
54
 * The registers has been refactorized
55
 *
56
 * Revision 1.1.2.4  2007/07/24 09:55:31  jorpiell
57
 * Add the default servers
58
 *
59
 * Revision 1.1.2.3  2007/07/13 12:00:35  jorpiell
60
 * Add the posibility to add a new panel
61
 *
62
 * Revision 1.1.2.2  2007/07/11 13:01:50  jorpiell
63
 * Catalog UI updated
64
 *
65
 * Revision 1.1.2.1  2007/07/10 11:18:04  jorpiell
66
 * Added the registers
67
 *
68
 *
69
 */
70
/**
71
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
72
 */
73
public class ServerConnectPanel extends es.gva.cit.catalogClient.ui.serverconnect.ServerConnectPanel{
74
        
75
        public ServerConnectPanel(){
76
                super();
77
                setDatabaseVisible(false);
78
        }
79
        
80
        /**
81
         * Select a concrete protocol
82
         * @param protocol
83
         * Protocol to select
84
         */
85
        public void setProtocol(String protocol){
86
                IGazetteerServiceDriver driver = GazetteerDriverRegister.getInstance().getDriver(protocol);
87
                if (driver != null){
88
                        protocolCombo.setSelectedItem(driver);
89
                }
90
        }
91
}