changeset 9574:8cf2968dd4f9

veg'zone table normalizer corrected
author gernotbelger
date Tue, 06 Nov 2018 13:19:54 +0100
parents b9c87bbff6a4
children cff7636035ce
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/AbstractVegZonesTablePanel.java gwt-client/src/main/java/org/dive4elements/river/client/client/ui/uinfo/VegetationzonesTableEditPanel.java
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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() {

http://dive4elements.wald.intevation.org