Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java @ 568:1d20533a4ae3
Bring Oberkante and Unterkante into UI.
flys-client/trunk@2116 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 14 Jun 2011 15:46:31 +0000 |
parents | 469528551b78 |
children | dfbc6693247e |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java Tue Jun 14 14:19:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java Tue Jun 14 15:46:31 2011 +0000 @@ -123,6 +123,7 @@ * This method creates a table that contains the location values. */ protected void createLocationTable() { + GWT.log("---------- I WAS HERE ---------"); locationTable.setWidth100(); locationTable.setShowRecordComponents(true); locationTable.setShowRecordComponentsByCell(true); @@ -131,7 +132,7 @@ ListGridField addLocation = new ListGridField ("", ""); addLocation.setType (ListGridFieldType.ICON); - addLocation.setWidth ("30"); + addLocation.setWidth (20); addLocation.addRecordClickHandler (new RecordClickHandler () { public void onRecordClick (RecordClickEvent e) { ListGridRecord[] records = locationTable.getSelection(); @@ -149,11 +150,24 @@ ListGridField lside = new ListGridField("riverside", MESSAGES.riverside()); lside.setType(ListGridFieldType.TEXT); - lside.setWidth(60); + lside.setWidth(40); + ListGridField loc = new ListGridField("from", MESSAGES.location()); loc.setType(ListGridFieldType.TEXT); - loc.setWidth(80); - locationTable.setFields(addLocation, ldescr, loc, lside); + loc.setWidth(40); + + ListGridField bottom = + new ListGridField("bottom", MESSAGES.bottom_edge()); + bottom.setType(ListGridFieldType.TEXT); + bottom.setWidth(30); + + ListGridField top = + new ListGridField("top", MESSAGES.top_edge()); + top.setType(ListGridFieldType.TEXT); + top.setWidth(30); + + locationTable.setFields( + addLocation, ldescr, loc, lside, bottom, top); }