changeset 886:2161d3acc83f

Changed field size from fixed to percental value in helper tables. flys-client/trunk@2720 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 13 Sep 2011 12:47:54 +0000
parents eeea6a02d62c
children 6a27949c7022
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java flys-client/src/main/java/de/intevation/flys/client/client/ui/range/RangeTable.java
diffstat 5 files changed, 36 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Sep 13 12:26:02 2011 +0000
+++ b/flys-client/ChangeLog	Tue Sep 13 12:47:54 2011 +0000
@@ -1,3 +1,13 @@
+2011-09-13  Raimund Renkert <raimund.renkert@intevation.de>
+
+	Issue239
+
+	* src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java,
+	  src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java,
+	  src/main/java/de/intevation/flys/client/client/ui/range/RangeTable.java,
+	  src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java:
+	  Changed field size from fixed to percental value.
+
 2011-09-13  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/ProjectList.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java	Tue Sep 13 12:26:02 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java	Tue Sep 13 12:47:54 2011 +0000
@@ -254,24 +254,24 @@
         ddescr.setWidth("*");
         ListGridField from = new ListGridField("from", MESSAGES.from());
         from.setType(ListGridFieldType.TEXT);
-        from.setWidth(40);
+        from.setWidth("12%");
         ListGridField to = new ListGridField("to", MESSAGES.to());
         to.setType(ListGridFieldType.TEXT);
-        to.setWidth(40);
+        to.setWidth("12%");
         ListGridField dside = new ListGridField("riverside",
                 MESSAGES.riverside());
         dside.setType(ListGridFieldType.TEXT);
-        dside.setWidth(40);
+        dside.setWidth("12%");
 
         ListGridField bottom =
             new ListGridField("bottom", MESSAGES.bottom_edge());
         bottom.setType(ListGridFieldType.TEXT);
-        bottom.setWidth(30);
+        bottom.setWidth("10%");
 
         ListGridField top =
             new ListGridField("top", MESSAGES.top_edge());
         top.setType(ListGridFieldType.TEXT);
-        top.setWidth(30);
+        top.setWidth("10%");
 
         distanceTable.setFields(
             addDistance, ddescr, from, to, dside, bottom, top);
@@ -328,20 +328,20 @@
         ListGridField lside = new ListGridField("riverside",
                 MESSAGES.riverside());
         lside.setType(ListGridFieldType.TEXT);
-        lside.setWidth(40);
+        lside.setWidth("12%");
         ListGridField loc = new ListGridField("from", MESSAGES.locations());
         loc.setType(ListGridFieldType.TEXT);
-        loc.setWidth(40);
+        loc.setWidth("12%");
 
         ListGridField bottom =
             new ListGridField("bottom", MESSAGES.bottom_edge());
         bottom.setType(ListGridFieldType.TEXT);
-        bottom.setWidth(30);
+        bottom.setWidth("10%");
 
         ListGridField top =
             new ListGridField("top", MESSAGES.top_edge());
         top.setType(ListGridFieldType.TEXT);
-        top.setWidth(30);
+        top.setWidth("10%");
 
         locationsTable.setFields(addLocation, ldescr, loc, lside, bottom, top);
     }
@@ -399,12 +399,12 @@
         ListGridField bottom =
             new ListGridField("bottom", MESSAGES.bottom_edge());
         bottom.setType(ListGridFieldType.TEXT);
-        bottom.setWidth(30);
+        bottom.setWidth("10%");
 
         ListGridField top =
             new ListGridField("top", MESSAGES.top_edge());
         top.setType(ListGridFieldType.TEXT);
-        top.setWidth(30);
+        top.setWidth("10%");
 
         ListGridField ldescr = new ListGridField("description",
                 MESSAGES.description());
@@ -413,10 +413,10 @@
         ListGridField lside = new ListGridField("riverside",
                 MESSAGES.riverside());
         lside.setType(ListGridFieldType.TEXT);
-        lside.setWidth(40);
+        lside.setWidth("12%");
         ListGridField loc = new ListGridField("from", MESSAGES.locations());
         loc.setType(ListGridFieldType.TEXT);
-        loc.setWidth(40);
+        loc.setWidth("12%");
 
         locationDistanceTable.setFields(
             addfrom, addto2, ldescr, loc, lside, bottom, top);
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Tue Sep 13 12:26:02 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java	Tue Sep 13 12:47:54 2011 +0000
@@ -160,21 +160,21 @@
         ListGridField lside = new ListGridField("riverside",
                 MESSAGES.riverside());
         lside.setType(ListGridFieldType.TEXT);
-        lside.setWidth(40);
+        lside.setWidth("10%");
 
         ListGridField loc = new ListGridField("from", MESSAGES.location());
         loc.setType(ListGridFieldType.TEXT);
-        loc.setWidth(40);
+        loc.setWidth("10%");
 
         ListGridField bottom =
             new ListGridField("bottom", MESSAGES.bottom_edge());
         bottom.setType(ListGridFieldType.TEXT);
-        bottom.setWidth(30);
+        bottom.setWidth("10%");
 
         ListGridField top =
             new ListGridField("top", MESSAGES.top_edge());
         top.setType(ListGridFieldType.TEXT);
-        top.setWidth(30);
+        top.setWidth("10%");
 
         locationTable.setFields(
             addLocation, ldescr, loc, lside, bottom, top);
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java	Tue Sep 13 12:26:02 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java	Tue Sep 13 12:47:54 2011 +0000
@@ -51,19 +51,19 @@
 
         ListGridField lside = new ListGridField("riverside", MSG.riverside());
         lside.setType(ListGridFieldType.TEXT);
-        lside.setWidth(40);
+        lside.setWidth("12%");
 
         ListGridField loc = new ListGridField("from", MSG.locations());
         loc.setType(ListGridFieldType.TEXT);
-        loc.setWidth(40);
+        loc.setWidth("12%");
 
         ListGridField bottom = new ListGridField("bottom", MSG.bottom_edge());
         bottom.setType(ListGridFieldType.TEXT);
-        bottom.setWidth(30);
+        bottom.setWidth("10%");
 
         ListGridField top = new ListGridField("top", MSG.top_edge());
         top.setType(ListGridFieldType.TEXT);
-        top.setWidth(30);
+        top.setWidth("10%");
 
         setFields(addfrom, addto, ldescr, loc, lside, bottom, top);
     }
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/range/RangeTable.java	Tue Sep 13 12:26:02 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/range/RangeTable.java	Tue Sep 13 12:47:54 2011 +0000
@@ -45,25 +45,25 @@
         ddescr.setWidth("*");
         ListGridField from = new ListGridField("from", MESSAGES.from());
         from.setType(ListGridFieldType.TEXT);
-        from.setWidth(40);
+        from.setWidth("12%");
 
         ListGridField to = new ListGridField("to", MESSAGES.to());
         to.setType(ListGridFieldType.TEXT);
-        to.setWidth(40);
+        to.setWidth("12%");
 
         ListGridField dside = new ListGridField(
             "riverside", MESSAGES.riverside());
         dside.setType(ListGridFieldType.TEXT);
-        dside.setWidth(40);
+        dside.setWidth("12%");
 
         ListGridField bottom = new ListGridField(
             "bottom", MESSAGES.bottom_edge());
         bottom.setType(ListGridFieldType.TEXT);
-        bottom.setWidth(30);
+        bottom.setWidth("10%");
 
         ListGridField top = new ListGridField("top", MESSAGES.top_edge());
         top.setType(ListGridFieldType.TEXT);
-        top.setWidth(30);
+        top.setWidth("10%");
 
         setFields(addDistance, ddescr, from, to, dside, bottom, top);
     }

http://dive4elements.wald.intevation.org