changeset 251:113b06ab2110

BugFix: The Value of SingleInputFields will now also be shown in the static ui. issue81 gnv-artifacts/trunk@321 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 11 Nov 2009 12:16:15 +0000
parents 4e8f0fd8ed79
children f1e7ddeef5bc
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/DefaultSingleValueDescribeData.java gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/SingleValueDescribeData.java
diffstat 4 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Wed Nov 11 09:52:16 2009 +0000
+++ b/gnv-artifacts/ChangeLog	Wed Nov 11 12:16:15 2009 +0000
@@ -1,3 +1,13 @@
+2009-11-11  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/java/de/intevation/gnv/transition/describedata/DefaultSingleValueDescribeData.java (setValue): 
+	* src/main/java/de/intevation/gnv/transition/describedata/SingleValueDescribeData.java: 
+	  Added setValue-Method for setting the Value which was sent back to the Servere 
+	  using the feed-request. issue81
+	* src/main/java/de/intevation/gnv/transition/TransitionBase.java (getDescribeData): 
+	  Added SingleValueDescribeData to the method for storing InputValues for
+	  Describeoutput issue81
+	  
 2009-11-11  Tim Englich  <tim.englich@intevation.de>
 
 	* src/main/java/de/intevation/gnv/transition/describedata/MinMaxDescribeData.java,
@@ -8,7 +18,7 @@
 	
 	* src/main/java/de/intevation/gnv/transition/TransitionBase.java (describe):
 	  Changed the usage of the Name of the MinMaxTransition from getMinName to getName.
-	   
+	  
 	* src/main/java/de/intevation/gnv/transition/MinMaxTransition.java (purifyResult): 
 	  Changed the Constructor of MinMaxTransition according to API-Changes of
 	  DefaultMinMaxDescribeData
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java	Wed Nov 11 09:52:16 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java	Wed Nov 11 12:16:15 2009 +0000
@@ -302,6 +302,8 @@
                 if (inputData.getName().equals(MAXVALUEFIELDNAME)) {
                     data.setMaxValue(inputData.getValue());
                 }
+            } else if (o instanceof SingleValueDescribeData) {
+                ((SingleValueDescribeData)o).setValue(inputData.getValue());
             }
         }
     }
@@ -324,6 +326,10 @@
                     if (name.equals(((MinMaxDescribeData) o).getMaxName())) {
                         return o;
                     }
+                }else if (o instanceof SingleValueDescribeData) {
+                    if (name.equals(((SingleValueDescribeData)o).getName())){
+                        return o;
+                    }
                 }
             }
         }
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/DefaultSingleValueDescribeData.java	Wed Nov 11 09:52:16 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/DefaultSingleValueDescribeData.java	Wed Nov 11 12:16:15 2009 +0000
@@ -44,4 +44,8 @@
         return this.value;
     }
 
+    public void setValue(String value) {
+        this.value = value;
+    }
+
 }
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/SingleValueDescribeData.java	Wed Nov 11 09:52:16 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/SingleValueDescribeData.java	Wed Nov 11 12:16:15 2009 +0000
@@ -12,4 +12,6 @@
     public String getName();
 
     public String getValue();
+    
+    public void setValue(String value);
 }

http://dive4elements.wald.intevation.org