/[schmitzm]/trunk/src/skrueger/geotools/io/WfsSettingsJComboBox.java
ViewVC logotype

Annotation of /trunk/src/skrueger/geotools/io/WfsSettingsJComboBox.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1295 - (hide annotations)
Mon Nov 22 15:09:59 2010 UTC (14 years, 3 months ago) by alfonx
File MIME type: text/plain
File size: 569 byte(s)
Refactored ServerSettings and ServerList classes in schmitzm for more usablility ;-)
1 alfonx 1161 package skrueger.geotools.io;
2    
3     import javax.swing.DefaultComboBoxModel;
4     import javax.swing.JComboBox;
5    
6     public class WfsSettingsJComboBox extends JComboBox {
7    
8     private final WfsServerList wfsList;
9    
10     public WfsSettingsJComboBox(WfsServerList wfsList) {
11 alfonx 1295 super(wfsList.toArray(new GtWfsServerSettings[0]));
12 alfonx 1161 this.wfsList = wfsList;
13     }
14    
15     public WfsServerList getWfsList() {
16     return wfsList;
17     }
18 alfonx 1163
19 alfonx 1161 public void listChanged() {
20 alfonx 1295 GtWfsServerSettings[] array = wfsList
21     .toArray(new GtWfsServerSettings[wfsList.size()]);
22 alfonx 1163 setModel(new DefaultComboBoxModel(array));
23 alfonx 1161 }
24    
25     }

Properties

Name Value
svn:eol-style native
svn:keywords Id URL
svn:mime-type text/plain

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26