# HG changeset patch # User Raimund Renkert # Date 1315918074 0 # Node ID 2161d3acc83fcd10c23e4938c64393a8496eec82 # Parent eeea6a02d62cc27208ffafcb2f3bb565b03f6c42 Changed field size from fixed to percental value in helper tables. flys-client/trunk@2720 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r eeea6a02d62c -r 2161d3acc83f flys-client/ChangeLog --- 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 + + 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 * src/main/java/de/intevation/flys/client/client/ui/ProjectList.java: diff -r eeea6a02d62c -r 2161d3acc83f flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.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); diff -r eeea6a02d62c -r 2161d3acc83f flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java --- 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); diff -r eeea6a02d62c -r 2161d3acc83f flys-client/src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java --- 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); } diff -r eeea6a02d62c -r 2161d3acc83f flys-client/src/main/java/de/intevation/flys/client/client/ui/range/RangeTable.java --- 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); }