diff flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java @ 860:f5855350fc03

Set WSPLGEN specific 'type' attributes after digitizing new geometries. flys-client/trunk@2655 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 06 Sep 2011 17:35:43 +0000
parents d02c3835df28
children 22dc88b17253
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java	Tue Sep 06 11:43:47 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java	Tue Sep 06 17:35:43 2011 +0000
@@ -137,7 +137,22 @@
 
         if (type == null || type.length() == 0) {
             type = getSelectedType();
-            attrs.setAttribute("typ", type);
+
+            if (type.equals(BARRIER_PIPE1)) {
+                attrs.setAttribute("typ", "Rohr 1");
+            }
+            else if (type.equals(BARRIER_PIPE2)) {
+                attrs.setAttribute("typ", "Rohr 2");
+            }
+            else if (type.equals(BARRIER_DAM)) {
+                attrs.setAttribute("typ", "Damm");
+            }
+            else if (type.equals(BARRIER_DITCH)) {
+                attrs.setAttribute("typ", "Graben");
+            }
+            else if (type.equals(BARRIER_RINGDIKE)) {
+                attrs.setAttribute("typ", "Ringdeich");
+            }
         }
     }
 

http://dive4elements.wald.intevation.org