Revision: 4400
          http://sourceforge.net/p/jump-pilot/code/4400
Author:   ma15569
Date:     2015-04-15 15:37:55 +0000 (Wed, 15 Apr 2015)
Log Message:
-----------
Add capability to JComboBox to display a list of  WMS layer, or WFS layer, or 
all layerables

Modified Paths:
--------------
    
core/trunk/src/com/vividsolutions/jump/workbench/ui/AbstractMultiInputDialog.java

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AbstractMultiInputDialog.java
===================================================================
--- 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AbstractMultiInputDialog.java
   2015-04-14 20:42:14 UTC (rev 4399)
+++ 
core/trunk/src/com/vividsolutions/jump/workbench/ui/AbstractMultiInputDialog.java
   2015-04-15 15:37:55 UTC (rev 4400)
@@ -48,9 +48,13 @@
 import com.vividsolutions.jump.workbench.ui.LayerNameRenderer;
 import com.vividsolutions.jump.workbench.model.Layer;
 import com.vividsolutions.jump.workbench.model.LayerManager;
+import com.vividsolutions.jump.workbench.model.Layerable;
+import com.vividsolutions.jump.workbench.model.WMSLayer;
 import com.vividsolutions.jump.workbench.plugin.EnableCheck;
 import com.vividsolutions.jump.util.CollectionMap;
 
+import de.latlon.deejump.wfs.jump.WFSLayer;
+
 import java.awt.Color;
 import java.awt.Dimension;
 import java.awt.Frame;
@@ -288,8 +292,16 @@
         return (Layer)comboBox.getSelectedItem();
     }
     
-    
     /**
+     * Returns a Layerable from a JComboBox control.
+     */
+ // 2015-4-15 added by ma15569 - Giuseppe Aruta
+    public Layerable getLayerable(String fieldName) {
+        JComboBox comboBox = (JComboBox) 
fieldNameToComponentMap.get(fieldName);
+        return (Layerable) comboBox.getSelectedItem();
+    }
+
+    /**
      * Returns a Raster Image Layer from a JComboBox control.
      */
     // 2015-2-28 added by ma15569 - Giuseppe Aruta
@@ -297,7 +309,25 @@
         JComboBox comboBox = (JComboBox) 
fieldNameToComponentMap.get(fieldName);
         return (RasterImageLayer) comboBox.getSelectedItem();
     }
+
+    /**
+     * Returns a WMS layer from a JComboBox control.
+     */
+    // 2015-4-15 added by ma15569 - Giuseppe Aruta
+    public WMSLayer getWMSLayer(String fieldName) {
+        JComboBox comboBox = (JComboBox) 
fieldNameToComponentMap.get(fieldName);
+        return (WMSLayer) comboBox.getSelectedItem();
+    }
     
+    /**
+     * Returns a WFS layer from a JComboBox control.
+     */
+    // 2015-4-15 added by ma15569 - Giuseppe Aruta
+    public WFSLayer getWFSLayer(String fieldName) {
+        JComboBox comboBox = (JComboBox) 
fieldNameToComponentMap.get(fieldName);
+        return (WFSLayer) comboBox.getSelectedItem();
+    }
+    
     
////////////////////////////////////////////////////////////////////////////
     //                                                                        
//
     //                          ADD ENABLE CHECKS                             
//


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to