comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java @ 6272:24be0cc1c67c

Replaced the 'old school' wiki link buttons with default links.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 11 Jun 2013 12:57:51 +0200
parents 5319ecd0619c
children a52a038a6a09
comparison
equal deleted inserted replaced
6271:9b7f1288e6c4 6272:24be0cc1c67c
37 super(flys); 37 super(flys);
38 ListGridField nfield = new ListGridField("name", "Messtelle"); 38 ListGridField nfield = new ListGridField("name", "Messtelle");
39 ListGridField sfield = new ListGridField("kmstart", "Start [km]", 60); 39 ListGridField sfield = new ListGridField("kmstart", "Start [km]", 60);
40 ListGridField efield = new ListGridField("kmend", "Ende [km]", 60); 40 ListGridField efield = new ListGridField("kmend", "Ende [km]", 60);
41 ListGridField stfield = new ListGridField("station", "Station [km]"); 41 ListGridField stfield = new ListGridField("station", "Station [km]");
42 ListGridField lfield = new ListGridField("link", "Link"); 42 ListGridField lfield = new ListGridField("infolink", "Link");
43 lfield.setType(ListGridFieldType.LINK);
44 lfield.setCellFormatter(WikiLinks.cellFormatter(flys));
45 ListGridField cfield = new ListGridField("curvelink", "SQ"); 43 ListGridField cfield = new ListGridField("curvelink", "SQ");
46 cfield.addRecordClickHandler(this); 44 cfield.addRecordClickHandler(this);
45
46 this.setShowRecordComponents(true);
47 this.setShowRecordComponentsByCell(true);
47 this.setFields(nfield, sfield, efield, stfield, lfield, cfield); 48 this.setFields(nfield, sfield, efield, stfield, lfield, cfield);
48 } 49 }
49 50
50 /** 51 /**
51 * Resets the items of the tree. 52 * Resets the items of the tree.
110 MeasurementStationRecord station = 111 MeasurementStationRecord station =
111 (MeasurementStationRecord)event.getRecord(); 112 (MeasurementStationRecord)event.getRecord();
112 flys.newSQRelation(station.getRiverName(), station.getID()); 113 flys.newSQRelation(station.getRiverName(), station.getID());
113 } 114 }
114 115
116 @Override
117 public String getCellCSSText(ListGridRecord record, int rowNum,
118 int colNum) {
119 if (colNum == 6) {
120 return "text-decoration: underline; color: #0000EE; cursor: pointer;";
121 }
122 else {
123 return super.getCellCSSText(record, rowNum, colNum);
124 }
125 }
126
115 } 127 }

http://dive4elements.wald.intevation.org