/[schmitzm]/branches/2.3.x/src/skrueger/geotools/io/WfsSettingsJComboBox.java
ViewVC logotype

Diff of /branches/2.3.x/src/skrueger/geotools/io/WfsSettingsJComboBox.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1162 by alfonx, Sun Oct 24 16:44:18 2010 UTC revision 1163 by alfonx, Sun Oct 24 22:55:43 2010 UTC
# Line 8  public class WfsSettingsJComboBox extend Line 8  public class WfsSettingsJComboBox extend
8          private final WfsServerList wfsList;          private final WfsServerList wfsList;
9    
10          public WfsSettingsJComboBox(WfsServerList wfsList) {          public WfsSettingsJComboBox(WfsServerList wfsList) {
11                  super(wfsList.toArray( new WfsServerSettings[0]));                  super(wfsList.toArray(new WfsServerSettings[0]));
12                  this.wfsList = wfsList;                  this.wfsList = wfsList;
13          }          }
14    
15          public WfsServerList getWfsList() {          public WfsServerList getWfsList() {
16                  return wfsList;                  return wfsList;
17          }          }
18            
19          public void listChanged() {          public void listChanged() {
20                  setModel(new DefaultComboBoxModel(wfsList.toArray(new DbServerSettings[0])));                  WfsServerSettings[] array = wfsList
21                                    .toArray(new WfsServerSettings[wfsList.size()]);
22                    setModel(new DefaultComboBoxModel(array));
23          }          }
24    
   
25  }  }

Legend:
Removed from v.1162  
changed lines
  Added in v.1163

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26