changeset 1577:322f2626fb5d

Create a better label in IntegerRangeData for the selected item. flys-client/trunk@3843 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 31 Jan 2012 15:42:02 +0000
parents 8e5c5c70c586
children df11c4c8c578
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/shared/model/IntegerRangeData.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Jan 31 15:22:48 2012 +0000
+++ b/flys-client/ChangeLog	Tue Jan 31 15:42:02 2012 +0000
@@ -1,3 +1,8 @@
+2012-01-31  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/shared/model/IntegerRangeData.java:
+	  Create a label "min - max" for the DataItem returned by getItems().
+
 2012-01-31  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/WQSimpleArrayPanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/IntegerRangeData.java	Tue Jan 31 15:22:48 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/IntegerRangeData.java	Tue Jan 31 15:42:02 2012 +0000
@@ -93,9 +93,10 @@
         String theMin = String.valueOf(lower);
         String theMax = String.valueOf(upper);
 
+        String label = theMin + " - " + theMax;
         String value = theMin + ";" + theMax;
 
-        DataItem item  = new DefaultDataItem(value, value, value);
+        DataItem item  = new DefaultDataItem(label, label, value);
 
         return new DataItem[] { item };
     }

http://dive4elements.wald.intevation.org