Mercurial > dive4elements > river
changeset 3712:738010779c74
Add "to" and "from" strings to table columns.
flys-client/trunk@5463 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 14 Sep 2012 05:57:51 +0000 (2012-09-14) |
parents | e6ebbf4b253a |
children | 79ad33f41977 |
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/range/LocationsTable.java |
diffstat | 3 files changed, 14 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Thu Sep 13 14:03:49 2012 +0000 +++ b/flys-client/ChangeLog Fri Sep 14 05:57:51 2012 +0000 @@ -1,3 +1,9 @@ +2012-09-13 Christian Lins <christian.lins@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java, + src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java: + Adding "from" and "to" in table columns with the green/red marker icons (#808). + 2012-09-13 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Thu Sep 13 14:03:49 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Fri Sep 14 05:57:51 2012 +0000 @@ -452,14 +452,14 @@ } }; - ListGridField addfrom = new ListGridField ("", ""); + ListGridField addfrom = new ListGridField ("from", MESSAGES.from()); addfrom.setType (ListGridFieldType.ICON); - addfrom.setWidth (20); + addfrom.setWidth (30); addfrom.setCellIcon(baseUrl + MESSAGES.markerGreen()); - ListGridField addto2 = new ListGridField ("", ""); + ListGridField addto2 = new ListGridField ("to", MESSAGES.to()); addto2.setType (ListGridFieldType.ICON); - addto2.setWidth (20); + addto2.setWidth (30); addto2.setCellIcon(baseUrl + MESSAGES.markerRed()); locationDistanceTable.addCellClickHandler (new CellClickHandler () {
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java Thu Sep 13 14:03:49 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java Fri Sep 14 05:57:51 2012 +0000 @@ -24,7 +24,6 @@ public LocationsTable() { - String baseUrl = GWT.getHostPageBaseURL(); setWidth100(); @@ -37,14 +36,14 @@ setEmptyMessage(MSG.empty_filter()); setCanReorderFields(false); - ListGridField addfrom = new ListGridField ("", ""); + ListGridField addfrom = new ListGridField ("from", MSG.from()); addfrom.setType(ListGridFieldType.ICON); - addfrom.setWidth(20); + addfrom.setWidth(30); addfrom.setCellIcon(baseUrl + MSG.markerGreen()); - ListGridField addto = new ListGridField("", ""); + ListGridField addto = new ListGridField("to", MSG.to()); addto.setType(ListGridFieldType.ICON); - addto.setWidth(20); + addto.setWidth(30); addto.setCellIcon(baseUrl + MSG.markerRed()); ListGridField ldescr = new ListGridField(