[PATCH 1 of 2] Validate waterlevel 'to' value on change

Wald Commits scm-commit at wald.intevation.org
Mon Mar 3 15:40:30 CET 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1393857575 -3600
# Node ID afa0ffc3a708f479dd92db48f66232dc425a6a3f
# Parent  57c47ab81a30c953f09a56466a5c006cd4d3c5fd
Validate waterlevel 'to' value on change.

diff -r 57c47ab81a30 -r afa0ffc3a708 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WaterlevelGroundPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WaterlevelGroundPanel.java	Mon Mar 03 11:46:45 2014 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WaterlevelGroundPanel.java	Mon Mar 03 15:39:35 2014 +0100
@@ -25,6 +25,7 @@
         FloatRangeValidator frv = new FloatRangeValidator();
         frv.setMin(0f);
         frv.setMax(Float.MAX_VALUE);
+        frv.setValidateOnChange(true);
         distancePanel.getToItem().setValidators(frv);
     }
 


More information about the Dive4elements-commits mailing list