Mercurial > dive4elements > river
changeset 4291:6589f1c95101
Add link for info about the measurement station
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 29 Oct 2012 10:27:09 +0100 (2012-10-29) |
parents | 6aa8cd8da224 |
children | 250c4a0fa696 |
files | flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java |
diffstat | 5 files changed, 17 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Mon Oct 29 10:04:56 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Mon Oct 29 10:27:09 2012 +0100 @@ -1072,6 +1072,10 @@ String measurement_station_start_time(); + String measurement_station_url(); + + String measurement_station_info_link(); + String discharge_timeranges(); String discharge_chart();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Mon Oct 29 10:04:56 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Mon Oct 29 10:27:09 2012 +0100 @@ -559,3 +559,5 @@ measurement_station_type = Type of Measurement Station measurement_station_operator = Operator measurement_station_start_time = Observation Start Time +measurement_station_url = https://flys-intern.intevation.de/MessstellenInfo/ +measurement_station_info_link = Measurement Station Info
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Mon Oct 29 10:04:56 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Mon Oct 29 10:27:09 2012 +0100 @@ -557,3 +557,5 @@ measurement_station_type = Typ der Messstelle measurement_station_operator = Operator measurement_station_start_time = Beobachtungsstart +measurement_station_url = https://flys-intern.intevation.de/MessstellenInfo/ +measurement_station_info_link = Messstelleninfo
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Mon Oct 29 10:04:56 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Mon Oct 29 10:27:09 2012 +0100 @@ -558,3 +558,5 @@ measurement_station_type = Type of Measurement Station measurement_station_operator = Operator measurement_station_start_time = Observation Start Time +measurement_station_url = https://flys-intern.intevation.de/MessstellenInfo/ +measurement_station_info_link = Measurement Station Info
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java Mon Oct 29 10:04:56 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java Mon Oct 29 10:27:09 2012 +0100 @@ -163,12 +163,13 @@ addMember(label); } - /* Long number = gauge.getOfficialNumber(); */ - /* String url = number != null ? */ - /* MSG.gauge_url() + number : */ - /* MSG.gauge_url(); */ - /* Anchor anchor = new Anchor(MSG.gauge_info_link(), url, "_blank"); */ - /* addMember(anchor); */ + Integer number = station.getID(); + String url = number != null ? + MSG.measurement_station_url() + number : + MSG.measurement_station_url(); + Anchor anchor = new Anchor(MSG.measurement_station_info_link(), + url, "_blank"); + addMember(anchor); } }