/[schmitzm]/branches/2.4.x/src/skrueger/geotools/io/DbSettingsJComboBox.java
ViewVC logotype

Annotation of /branches/2.4.x/src/skrueger/geotools/io/DbSettingsJComboBox.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1383 - (hide annotations)
Wed Jan 26 13:46:20 2011 UTC (14 years, 1 month ago) by alfonx
File MIME type: text/plain
File size: 500 byte(s)
trunk becomes 2.4.x ... starting to create multiple modules

1 alfonx 1161 package skrueger.geotools.io;
2    
3     import javax.swing.DefaultComboBoxModel;
4     import javax.swing.JComboBox;
5    
6     public class DbSettingsJComboBox extends JComboBox {
7    
8     private final DbServerList dbList;
9    
10     public DbSettingsJComboBox(DbServerList wfsList) {
11 alfonx 1295 super(wfsList.toArray(new GtDbServerSettings[0]));
12 alfonx 1161 this.dbList = wfsList;
13     }
14    
15     public DbServerList getDbList() {
16     return dbList;
17     }
18    
19     public void listChanged() {
20 alfonx 1295 setModel(new DefaultComboBoxModel(dbList.toArray(new GtDbServerSettings[0])));
21 alfonx 1161 }
22    
23     }

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