svn-gvsig-desktop / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / servers / mapserver / ServiceWMSPanel.java @ 10626
History | View | Annotate | Download (2.34 KB)
1 |
package com.iver.cit.gvsig.publish.servers.mapserver; |
---|---|
2 |
|
3 |
import java.awt.Insets; |
4 |
import java.util.Properties; |
5 |
|
6 |
import javax.swing.JTextField; |
7 |
|
8 |
import org.gvsig.gui.beans.swing.GridBagLayoutPanel; |
9 |
|
10 |
import com.iver.andami.PluginServices; |
11 |
import com.iver.cit.gvsig.publish.servers.ServicePanel; |
12 |
|
13 |
/**
|
14 |
* WMS Service Properties Panel
|
15 |
*
|
16 |
* @author David Gilsanz <gilsanz_dav@gva.es>
|
17 |
*
|
18 |
*/
|
19 |
|
20 |
public class ServiceWMSPanel extends GridBagLayoutPanel implements ServicePanel{ |
21 |
private JTextField tbMapFile = null; |
22 |
private JTextField tbSymbols = null; |
23 |
private JTextField tbFonts = null; |
24 |
private JTextField tbImageURL = null; |
25 |
private JTextField tbImagePath = null; |
26 |
|
27 |
public ServiceWMSPanel(){
|
28 |
super();
|
29 |
addComponent(PluginServices.getText(this, "mapFile") + ":", |
30 |
tbMapFile = new JTextField("",50),new Insets(1,0,1,7)); |
31 |
addComponent(PluginServices.getText(this, "symbols") + ":", |
32 |
tbSymbols = new JTextField("",50),new Insets(1,0,1,7)); |
33 |
addComponent(PluginServices.getText(this, "fonts") + ":", |
34 |
tbFonts = new JTextField("",50),new Insets(1,0,1,7)); |
35 |
addComponent(PluginServices.getText(this, "imageURL") + ":", |
36 |
tbImageURL = new JTextField("",50),new Insets(1,0,1,7)); |
37 |
addComponent(PluginServices.getText(this, "imagePath") + ":", |
38 |
tbImagePath = new JTextField("",50),new Insets(1,0,1,7)); |
39 |
} |
40 |
|
41 |
/// LWS de aqui pabajo deber?a valer
|
42 |
|
43 |
/*
|
44 |
* (non-Javadoc)
|
45 |
* @see com.iver.cit.gvsig.publish.servers.ServicePanel#getProperties()
|
46 |
*/
|
47 |
public Properties getProperties() { |
48 |
Properties properties = new Properties(); |
49 |
properties.put(MapServer.WMS_MAPFILE,tbMapFile.getText()); |
50 |
properties.put(MapServer.WMS_SYMBOLS,tbSymbols.getText()); |
51 |
properties.put(MapServer.WMS_FONTS,tbFonts.getText()); |
52 |
properties.put(MapServer.WMS_IMAGEURL,tbImageURL.getText()); |
53 |
properties.put(MapServer.WMS_IMAGEPATH,tbImagePath.getText()); |
54 |
return properties;
|
55 |
} |
56 |
|
57 |
/*
|
58 |
* (non-Javadoc)
|
59 |
* @see com.iver.cit.gvsig.publish.servers.ServicePanel#setProperties(java.util.Properties)
|
60 |
*/
|
61 |
public void setProperties(Properties properties) { |
62 |
tbMapFile.setText((String)properties.get(MapServer.WMS_MAPFILE));
|
63 |
tbSymbols.setText((String)properties.get(MapServer.WMS_SYMBOLS));
|
64 |
tbFonts.setText((String)properties.get(MapServer.WMS_FONTS));
|
65 |
tbImageURL.setText((String)properties.get(MapServer.WMS_IMAGEURL));
|
66 |
tbImagePath.setText((String)properties.get(MapServer.WMS_IMAGEPATH));
|
67 |
} |
68 |
} |