Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java @ 7941:48d8dba891f6
Fixed columns in location/distance helper panels.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 18 Jun 2014 14:25:46 +0200 |
parents | 0f740919fa26 |
children | 9321b0cd4ad4 |
comparison
equal
deleted
inserted
replaced
7940:217ff570d83f | 7941:48d8dba891f6 |
---|---|
248 } | 248 } |
249 }; | 249 }; |
250 | 250 |
251 ListGridField addDistance = new ListGridField ("", ""); | 251 ListGridField addDistance = new ListGridField ("", ""); |
252 addDistance.setType (ListGridFieldType.ICON); | 252 addDistance.setType (ListGridFieldType.ICON); |
253 addDistance.setWidth (20); | 253 addDistance.setWidth (30); |
254 addDistance.addRecordClickHandler (new RecordClickHandler () { | 254 addDistance.addRecordClickHandler (new RecordClickHandler () { |
255 @Override | 255 @Override |
256 public void onRecordClick (RecordClickEvent e) { | 256 public void onRecordClick (RecordClickEvent e) { |
257 if (!isLocationMode ()) { | 257 if (!isLocationMode ()) { |
258 Record r = e.getRecord(); | 258 Record r = e.getRecord(); |
461 return value.toString(); | 461 return value.toString(); |
462 } | 462 } |
463 } | 463 } |
464 }; | 464 }; |
465 | 465 |
466 ListGridField addfrom = new ListGridField ("from", MESSAGES.from()); | 466 ListGridField addfrom = new ListGridField ("fromIcon", MESSAGES.from()); |
467 addfrom.setType (ListGridFieldType.ICON); | 467 addfrom.setType (ListGridFieldType.ICON); |
468 addfrom.setWidth (30); | 468 addfrom.setWidth (30); |
469 addfrom.setCellIcon(baseUrl + MESSAGES.markerGreen()); | 469 addfrom.setCellIcon(baseUrl + MESSAGES.markerGreen()); |
470 | 470 |
471 ListGridField addto2 = new ListGridField ("to", MESSAGES.to()); | 471 ListGridField addto2 = new ListGridField ("toIcon", MESSAGES.to()); |
472 addto2.setType (ListGridFieldType.ICON); | 472 addto2.setType (ListGridFieldType.ICON); |
473 addto2.setWidth (30); | 473 addto2.setWidth (30); |
474 addto2.setCellIcon(baseUrl + MESSAGES.markerRed()); | 474 addto2.setCellIcon(baseUrl + MESSAGES.markerRed()); |
475 | 475 |
476 locationDistanceTable.addCellClickHandler (new CellClickHandler () { | 476 locationDistanceTable.addCellClickHandler (new CellClickHandler () { |