Revision 12757 branches/CatalogYNomenclator_v1_1_0_1005/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/serverconnect/ServerConnectPanel.java
ServerConnectPanel.java | ||
---|---|---|
1 | 1 |
package es.gva.cit.gazetteer.ui.serverconnect; |
2 | 2 |
|
3 |
import es.gva.cit.catalogClient.drivers.ICatalogServiceDriver; |
|
4 |
import es.gva.cit.catalogClient.utils.CatalogClientRegister; |
|
5 |
import es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver; |
|
6 |
import es.gva.cit.gazetteer.utils.GazetteerClientRegister; |
|
3 | 7 |
|
8 |
|
|
4 | 9 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
5 | 10 |
* |
6 | 11 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
... | ... | |
45 | 50 |
* |
46 | 51 |
* $Id$ |
47 | 52 |
* $Log$ |
48 |
* Revision 1.1.2.3 2007-07-13 12:00:35 jorpiell |
|
53 |
* Revision 1.1.2.4 2007-07-24 09:55:31 jorpiell |
|
54 |
* Add the default servers |
|
55 |
* |
|
56 |
* Revision 1.1.2.3 2007/07/13 12:00:35 jorpiell |
|
49 | 57 |
* Add the posibility to add a new panel |
50 | 58 |
* |
51 | 59 |
* Revision 1.1.2.2 2007/07/11 13:01:50 jorpiell |
... | ... | |
65 | 73 |
super(); |
66 | 74 |
setDatabaseVisible(false); |
67 | 75 |
} |
76 |
|
|
77 |
/** |
|
78 |
* Select a concrete protocol |
|
79 |
* @param protocol |
|
80 |
* Protocol to select |
|
81 |
*/ |
|
82 |
public void setProtocol(String protocol){ |
|
83 |
IGazetteerServiceDriver driver = GazetteerClientRegister.getInstance().getDriver(protocol); |
|
84 |
if (driver != null){ |
|
85 |
protocolCombo.setSelectedItem(driver); |
|
86 |
} |
|
87 |
} |
|
68 | 88 |
} |
Also available in: Unified diff