diff gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 190:baaa1618fa27

Changed the displayed-Values as defined in issue47 gnv-artifacts/trunk@238 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 19 Oct 2009 09:18:40 +0000
parents 1b2fc94766c9
children 17987acf20d0
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java	Fri Oct 16 15:26:22 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java	Mon Oct 19 09:18:40 2009 +0000
@@ -521,6 +521,18 @@
                         Date d = ((GregorianCalendar) max).getTime();
                         max = DateUtils.getPatternedDateAmer(d);
                     }
+                    
+                    Element groupNode = xmlutilities.createXFormElement(
+                            document, "group");
+                    groupNode.setAttribute("ref", descibeData.getMinName());
+                    Element groupNodeLableNode = xmlutilities
+                            .createXFormElement(document, "label");
+                    groupNodeLableNode.setTextContent(RessourceFactory
+                            .getInstance().getRessource(
+                                    callMeta.getLanguages(),
+                                    descibeData.getMinName(),
+                                    descibeData.getMinName()));
+                    groupNode.appendChild(groupNodeLableNode);
 
                     Element inputMinNode = xmlutilities.createXFormElement(
                             document, "input");
@@ -554,12 +566,13 @@
                     inputMaxValueNode.setTextContent(max.toString());
                     inputMaxNode.appendChild(inputMaxValueNode);
 
+                    groupNode.appendChild(inputMinNode);
+                    groupNode.appendChild(inputMaxNode);
+                    
                     if (!it.hasNext()) {
-                        dynamic.appendChild(inputMinNode);
-                        dynamic.appendChild(inputMaxNode);
+                        dynamic.appendChild(groupNode);
                     } else {
-                        staticNode.appendChild(inputMinNode);
-                        staticNode.appendChild(inputMaxNode);
+                        staticNode.appendChild(groupNode);
                     }
                 } else if (o instanceof SingleValueDescribeData) {
 

http://dive4elements.wald.intevation.org