comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java @ 8396:a201d475e50d

Add location data to sq relation artifact. Fixed station name.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 08 Oct 2014 16:28:02 +0200
parents e3a63d9c5bb1
children 6c16b61ba9eb
comparison
equal deleted inserted replaced
8395:a5fbcdd85359 8396:a201d475e50d
199 new DataItem[]{refItem}); 199 new DataItem[]{refItem});
200 200
201 DataItem nameItem = new DefaultDataItem( 201 DataItem nameItem = new DefaultDataItem(
202 "station_name", 202 "station_name",
203 "station_name", 203 "station_name",
204 station.getID().toString()); 204 station.getName().toString());
205 Data name = new DefaultData( 205 Data name = new DefaultData(
206 "station_name", 206 "station_name",
207 null, 207 null,
208 null, 208 null,
209 new DataItem[]{nameItem}); 209 new DataItem[]{nameItem});
210 210
211 Data[] data = new Data[]{river, ref, name}; 211 DataItem locationItem = new DefaultDataItem(
212 "ld_locations",
213 "ld_locations",
214 station.getKmStart().toString());
215 Data location = new DefaultData(
216 "ld_locations",
217 null,
218 null,
219 new DataItem[]{locationItem});
220
221 Data[] data = new Data[]{river, ref, name, location};
212 forwardService.go(locale, artifact, data, 222 forwardService.go(locale, artifact, data,
213 new AsyncCallback<Artifact>() { 223 new AsyncCallback<Artifact>() {
214 @Override 224 @Override
215 public void onFailure(Throwable caught) { 225 public void onFailure(Throwable caught) {
216 GWT.log("Could not feed the artifact."); 226 GWT.log("Could not feed the artifact.");

http://dive4elements.wald.intevation.org