[PATCH 2 of 2] zu Punkt 10.4 Sohlhöhe Feld 1 (links)

Wald Commits scm-commit at wald.intevation.org
Thu Jan 10 09:07:23 CET 2019


# HG changeset patch
# User gernotbelger
# Date 1547107636 -3600
# Node ID d116a791b1f8e7a64fbe53a775a4a86973bf8fb9
# Parent  e02797341885786658a3aaf706dc0134026264ee
zu Punkt 10.4 Sohlhöhe Feld 1 (links)...

diff -r e02797341885 -r d116a791b1f8 backend/src/main/java/org/dive4elements/river/model/BedHeightValueType.java
--- a/backend/src/main/java/org/dive4elements/river/model/BedHeightValueType.java	Thu Jan 10 08:53:09 2019 +0100
+++ b/backend/src/main/java/org/dive4elements/river/model/BedHeightValueType.java	Thu Jan 10 09:07:16 2019 +0100
@@ -21,12 +21,23 @@
         public Double getValue(final BedHeightValue bedheightValue) {
             return bedheightValue.getMinHeight();
         }
+
+        @Override
+        public String getLeftRightStringAppendix() {
+            return "bundu_facet_field_bedheight.description.appendix.left";
+
+        }
     },
     max {
         @Override
         public Double getValue(final BedHeightValue bedheightValue) {
             return bedheightValue.getMaxHeight();
         }
+
+        @Override
+        public String getLeftRightStringAppendix() {
+            return "bundu_facet_field_bedheight.description.appendix.right";
+        }
     },
     value {
         @Override
@@ -39,6 +50,11 @@
         public Double getValue(final BedHeightValue bedheightValue) {
             return bedheightValue.getHeight01();
         }
+
+        @Override
+        public String getLeftRightStringAppendix() {
+            return min.getLeftRightStringAppendix();
+        }
     },
     field02 {
         @Override
@@ -93,10 +109,19 @@
         public Double getValue(final BedHeightValue bedheightValue) {
             return bedheightValue.getHeight10();
         }
+
+        @Override
+        public String getLeftRightStringAppendix() {
+            return max.getLeftRightStringAppendix();
+        }
     };
 
     public abstract Double getValue(final BedHeightValue bedheightValue);
 
+    public String getLeftRightStringAppendix() {
+        return "";
+    }
+
     /**
      * Enum constant of a section height
      *


More information about the Dive4Elements-commits mailing list