Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/MeasurementStationRecord.java @ 5503:b660090b417d
Create a new sq relation project on measurement station record click.
* Added new methods to artifact service.
* Added new client-side artifact.
* Updated UI to have a new row in 'Messstellen-Info'.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 28 Mar 2013 15:21:15 +0100 |
parents | 3b58bb0c55e3 |
children |
comparison
equal
deleted
inserted
replaced
5502:566eea137330 | 5503:b660090b417d |
---|---|
25 String link = number != null ? | 25 String link = number != null ? |
26 MSG.measurement_station_url() + number : | 26 MSG.measurement_station_url() + number : |
27 MSG.measurement_station_url(); | 27 MSG.measurement_station_url(); |
28 this.setLink(link); | 28 this.setLink(link); |
29 this.setLinkText(MSG.measurement_station_info_link()); | 29 this.setLinkText(MSG.measurement_station_info_link()); |
30 this.setCurveLink(MSG.static_sqrelation()); | |
30 this.setID(number); | 31 this.setID(number); |
31 this.setName(station.getName()); | 32 this.setName(station.getName()); |
32 if (station.isKmUp()) { | 33 if (station.isKmUp()) { |
33 this.setKmEnd(station.getKmStart()); | 34 this.setKmEnd(station.getKmStart()); |
34 this.setKmStart(station.getKmEnd()); | 35 this.setKmStart(station.getKmEnd()); |
170 } | 171 } |
171 | 172 |
172 public void setLink(String link) { | 173 public void setLink(String link) { |
173 this.setAttribute("link", link); | 174 this.setAttribute("link", link); |
174 } | 175 } |
176 | |
177 public void setCurveLink(String link) { | |
178 this.setAttribute("curvelink", link); | |
179 } | |
180 | |
181 public String getCurveLink() { | |
182 return this.getAttribute("curvelink"); | |
183 } | |
184 | |
175 } | 185 } |