diff gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 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
line wrap: on
line diff
--- 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;
+                    }
                 }
             }
         }

http://dive4elements.wald.intevation.org