Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java @ 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 | dbaef661d0e5 |
children | 89c01218172b |
line wrap: on
line diff
--- 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);