[PATCH 2 of 2] Add location data to sq relation artifact. Fixed station name
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 8 16:28:33 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1412778482 -7200
# Node ID a201d475e50d294ec40418ee6e2616db54147f66
# Parent a5fbcdd85359e42de5ef68df6e9ab8ef04a0c071
Add location data to sq relation artifact. Fixed station name.
diff -r a5fbcdd85359 -r a201d475e50d gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java Wed Oct 08 16:23:46 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java Wed Oct 08 16:28:02 2014 +0200
@@ -201,14 +201,24 @@
DataItem nameItem = new DefaultDataItem(
"station_name",
"station_name",
- station.getID().toString());
+ station.getName().toString());
Data name = new DefaultData(
"station_name",
null,
null,
new DataItem[]{nameItem});
- Data[] data = new Data[]{river, ref, name};
+ DataItem locationItem = new DefaultDataItem(
+ "ld_locations",
+ "ld_locations",
+ station.getKmStart().toString());
+ Data location = new DefaultData(
+ "ld_locations",
+ null,
+ null,
+ new DataItem[]{locationItem});
+
+ Data[] data = new Data[]{river, ref, name, location};
forwardService.go(locale, artifact, data,
new AsyncCallback<Artifact>() {
@Override
More information about the Dive4Elements-commits
mailing list