Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.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 | 9647a6548320 |
children | 360e22afb98b |
comparison
equal
deleted
inserted
replaced
3711:e6ebbf4b253a | 3712:738010779c74 |
---|---|
450 return value.toString(); | 450 return value.toString(); |
451 } | 451 } |
452 } | 452 } |
453 }; | 453 }; |
454 | 454 |
455 ListGridField addfrom = new ListGridField ("", ""); | 455 ListGridField addfrom = new ListGridField ("from", MESSAGES.from()); |
456 addfrom.setType (ListGridFieldType.ICON); | 456 addfrom.setType (ListGridFieldType.ICON); |
457 addfrom.setWidth (20); | 457 addfrom.setWidth (30); |
458 addfrom.setCellIcon(baseUrl + MESSAGES.markerGreen()); | 458 addfrom.setCellIcon(baseUrl + MESSAGES.markerGreen()); |
459 | 459 |
460 ListGridField addto2 = new ListGridField ("", ""); | 460 ListGridField addto2 = new ListGridField ("to", MESSAGES.to()); |
461 addto2.setType (ListGridFieldType.ICON); | 461 addto2.setType (ListGridFieldType.ICON); |
462 addto2.setWidth (20); | 462 addto2.setWidth (30); |
463 addto2.setCellIcon(baseUrl + MESSAGES.markerRed()); | 463 addto2.setCellIcon(baseUrl + MESSAGES.markerRed()); |
464 | 464 |
465 locationDistanceTable.addCellClickHandler (new CellClickHandler () { | 465 locationDistanceTable.addCellClickHandler (new CellClickHandler () { |
466 public void onCellClick (CellClickEvent e) { | 466 public void onCellClick (CellClickEvent e) { |
467 if (e.getColNum() == 0) { | 467 if (e.getColNum() == 0) { |