Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/range/LocationsTable.java @ 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 |
parents | 047a44270348 |
children |
comparison
equal
deleted
inserted
replaced
3711:e6ebbf4b253a | 3712:738010779c74 |
---|---|
22 /** The message class that provides i18n strings.*/ | 22 /** The message class that provides i18n strings.*/ |
23 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); | 23 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); |
24 | 24 |
25 | 25 |
26 public LocationsTable() { | 26 public LocationsTable() { |
27 | |
28 String baseUrl = GWT.getHostPageBaseURL(); | 27 String baseUrl = GWT.getHostPageBaseURL(); |
29 | 28 |
30 setWidth100(); | 29 setWidth100(); |
31 setHeight100(); | 30 setHeight100(); |
32 setSelectionType(SelectionStyle.SINGLE); | 31 setSelectionType(SelectionStyle.SINGLE); |
35 setShowRecordComponents(true); | 34 setShowRecordComponents(true); |
36 setShowRecordComponentsByCell(true); | 35 setShowRecordComponentsByCell(true); |
37 setEmptyMessage(MSG.empty_filter()); | 36 setEmptyMessage(MSG.empty_filter()); |
38 setCanReorderFields(false); | 37 setCanReorderFields(false); |
39 | 38 |
40 ListGridField addfrom = new ListGridField ("", ""); | 39 ListGridField addfrom = new ListGridField ("from", MSG.from()); |
41 addfrom.setType(ListGridFieldType.ICON); | 40 addfrom.setType(ListGridFieldType.ICON); |
42 addfrom.setWidth(20); | 41 addfrom.setWidth(30); |
43 addfrom.setCellIcon(baseUrl + MSG.markerGreen()); | 42 addfrom.setCellIcon(baseUrl + MSG.markerGreen()); |
44 | 43 |
45 ListGridField addto = new ListGridField("", ""); | 44 ListGridField addto = new ListGridField("to", MSG.to()); |
46 addto.setType(ListGridFieldType.ICON); | 45 addto.setType(ListGridFieldType.ICON); |
47 addto.setWidth(20); | 46 addto.setWidth(30); |
48 addto.setCellIcon(baseUrl + MSG.markerRed()); | 47 addto.setCellIcon(baseUrl + MSG.markerRed()); |
49 | 48 |
50 ListGridField ldescr = new ListGridField( | 49 ListGridField ldescr = new ListGridField( |
51 "description", MSG.description()); | 50 "description", MSG.description()); |
52 ldescr.setType(ListGridFieldType.TEXT); | 51 ldescr.setType(ListGridFieldType.TEXT); |