comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java @ 8409:8ef11fad27a2

Purge redundant station-column (the values will go to kmstart).
author Tom Gottfried <tom@intevation.de>
date Tue, 14 Oct 2014 16:33:54 +0200
parents 6c16b61ba9eb
children 4f6892d9dff5
comparison
equal deleted inserted replaced
8408:6c16b61ba9eb 8409:8ef11fad27a2
62 super(flys); 62 super(flys);
63 ListGridField nfield = new ListGridField("name", "Messtelle"); 63 ListGridField nfield = new ListGridField("name", "Messtelle");
64 ListGridField mfield = new ListGridField("measurementtype", "Messstellenart"); 64 ListGridField mfield = new ListGridField("measurementtype", "Messstellenart");
65 ListGridField sfield = new ListGridField("kmstart", "Start [km]", 60); 65 ListGridField sfield = new ListGridField("kmstart", "Start [km]", 60);
66 ListGridField efield = new ListGridField("kmend", "Ende [km]", 60); 66 ListGridField efield = new ListGridField("kmend", "Ende [km]", 60);
67 ListGridField stfield = new ListGridField("station", "Station [km]");
68 ListGridField lfield = new ListGridField("infolink", "Info"); 67 ListGridField lfield = new ListGridField("infolink", "Info");
69 ListGridField cfield = new ListGridField("curvelink", "Feststofftransport-Abfluss-Beziehung"); 68 ListGridField cfield = new ListGridField("curvelink", "Feststofftransport-Abfluss-Beziehung");
70 cfield.addRecordClickHandler(this); 69 cfield.addRecordClickHandler(this);
71 70
72 this.setShowRecordComponents(true); 71 this.setShowRecordComponents(true);
73 this.setShowRecordComponentsByCell(true); 72 this.setShowRecordComponentsByCell(true);
74 this.setFields(nfield, mfield, sfield, efield, stfield, lfield, cfield); 73 this.setFields(nfield, mfield, sfield, efield, lfield, cfield);
75 } 74 }
76 75
77 /** 76 /**
78 * Resets the items of the tree. 77 * Resets the items of the tree.
79 * If the list of gauges is empty or null the tree will be empty. 78 * If the list of gauges is empty or null the tree will be empty.
224 } 223 }
225 224
226 @Override 225 @Override
227 public String getCellCSSText(ListGridRecord record, int rowNum, 226 public String getCellCSSText(ListGridRecord record, int rowNum,
228 int colNum) { 227 int colNum) {
229 if (colNum == 7) { 228 if (colNum == 6) {
230 return "text-decoration: underline; color: #0000EE; cursor: pointer;"; 229 return "text-decoration: underline; color: #0000EE; cursor: pointer;";
231 } 230 }
232 else { 231 else {
233 return super.getCellCSSText(record, rowNum, colNum); 232 return super.getCellCSSText(record, rowNum, colNum);
234 } 233 }

http://dive4elements.wald.intevation.org