[PATCH] veg'zone table normalizer corrected

Wald Commits scm-commit at wald.intevation.org
Tue Nov 6 13:20:19 CET 2018


# HG changeset patch
# User gernotbelger
# Date 1541506794 -3600
# Node ID 8cf2968dd4f9ea888ef392e8106e6b267cf1f959
# Parent  b9c87bbff6a45bd938ad4107de885d2c06b7a240
veg'zone table normalizer corrected

diff -r b9c87bbff6a4 -r 8cf2968dd4f9 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/AbstractVegZonesTablePanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/AbstractVegZonesTablePanel.java	Tue Nov 06 10:56:22 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/AbstractVegZonesTablePanel.java	Tue Nov 06 13:19:54 2018 +0100
@@ -229,8 +229,7 @@
             @Override
             public Object normalize(final ListGridRecord record, final String fieldName) {
                 final String number = record.getAttribute(fieldName);
-                final String numberFormat = "000" + number;
-                return numberFormat.substring(numberFormat.length() - 3);
+                return Integer.valueOf(number);
             }
         };
         return normalizer;
diff -r b9c87bbff6a4 -r 8cf2968dd4f9 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/VegetationzonesTableEditPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/VegetationzonesTableEditPanel.java	Tue Nov 06 10:56:22 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/VegetationzonesTableEditPanel.java	Tue Nov 06 13:19:54 2018 +0100
@@ -57,7 +57,7 @@
 
         final DynamicForm form1 = new DynamicForm();
 
-        form1.setNumCols(4); // für Layout untereinander muss 2 eingestellt werden
+        form1.setNumCols(5); // für Layout untereinander muss 2 eingestellt werden
         form1.setFields(this.vegzone, this.start, this.end, colorPicker);
 
         add.addClickHandler(new ClickHandler() {


More information about the Dive4Elements-commits mailing list