annotate artifacts/src/main/java/org/dive4elements/river/artifacts/states/LocationDistanceSelect.java @ 9425:3f49835a00c3

Extended CrossSectionFacet so it may fetch different data from within the artifact result. Also allows to have acces to the potentially already computed artifact result via its normal computation cache.
author gernotbelger
date Fri, 17 Aug 2018 15:31:02 +0200
parents 34dc0163ad2d
children
rev   line source
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
2 * Software engineering by Intevation GmbH
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
3 *
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5867
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5994
af13ceeba52a Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5867
diff changeset
6 * documentation coming with Dive4Elements River for details.
5863
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
7 */
4897a58c8746 River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
8
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4043
diff changeset
9 package org.dive4elements.river.artifacts.states;
136
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
10
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11 import org.apache.log4j.Logger;
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
12 import org.dive4elements.artifactdatabase.data.StateData;
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4043
diff changeset
13 import org.dive4elements.artifacts.Artifact;
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
14 import org.dive4elements.artifacts.CallContext;
5867
59ff03ff48f1 River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5863
diff changeset
15 import org.dive4elements.river.artifacts.D4EArtifact;
5831
bd047b71ab37 Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4043
diff changeset
16 import org.dive4elements.river.artifacts.WINFOArtifact;
8451
e3e5d6bb4902 (issue1733) Use rangeaccess to access range information in location select
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8202
diff changeset
17 import org.dive4elements.river.artifacts.access.RangeAccess;
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
18 import org.dive4elements.river.artifacts.resources.Resources;
136
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
19
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
20 /**
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
21 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
22 */
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
23 public class LocationDistanceSelect extends ComputationRangeState {
136
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
24
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5994
diff changeset
25 /** The log used in this class. */
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5994
diff changeset
26 private static Logger log = Logger.getLogger(LocationDistanceSelect.class);
136
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
27
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
28 /** The name of the 'mode' field. */
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
29 public static final String MODE = "ld_mode";
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
30
2235
ee5310134463 Cosmetics/care/refac.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 1838
diff changeset
31 /** The name of the 'locations' field. */
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
32 public static final String LOCATIONS = "ld_locations";
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
33
136
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
34 /**
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
35 * The default constructor that initializes an empty State object.
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
36 */
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
37 public LocationDistanceSelect() {
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
38 }
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
39
660
627be3ca1ab6 code clean up in states
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 629
diff changeset
40 @Override
136
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
41 protected String getUIProvider() {
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
42 return "location_distance_panel";
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
43 }
313
89bd0417418f The location/distance state now writes default values into DESCRIBE.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 136
diff changeset
44
3265
c1f445b94d03 Cosmetics, doc.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 2235
diff changeset
45 /** Validates the range (or location). */
322
448d0dc64357 The inserted ranges (distance and WQ ranges) are validated in the feed() operation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 313
diff changeset
46 @Override
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
47 public boolean validate(final Artifact artifact) throws IllegalArgumentException {
8202
e4606eae8ea5 sed src/**/*.java 's/logger/log/g'
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5994
diff changeset
48 log.debug("LocationDistanceSelect.validate");
322
448d0dc64357 The inserted ranges (distance and WQ ranges) are validated in the feed() operation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 313
diff changeset
49
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
50 final D4EArtifact flys = (D4EArtifact) artifact;
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
51 final StateData mode = getData(flys, MODE);
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
52 final String mValue = mode != null ? (String) mode.getValue() : null;
3628
7467b091fb8e Refactored location/distance state to use FLYSArtifact instead of WINFOArtifact.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3265
diff changeset
53 if (mValue != null) {
7467b091fb8e Refactored location/distance state to use FLYSArtifact instead of WINFOArtifact.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3265
diff changeset
54 if (mValue.equals("distance")) {
7467b091fb8e Refactored location/distance state to use FLYSArtifact instead of WINFOArtifact.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3265
diff changeset
55 return super.validate(flys);
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
56 } else {
3628
7467b091fb8e Refactored location/distance state to use FLYSArtifact instead of WINFOArtifact.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3265
diff changeset
57 return validateLocations(flys);
7467b091fb8e Refactored location/distance state to use FLYSArtifact instead of WINFOArtifact.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3265
diff changeset
58 }
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
59 }
3628
7467b091fb8e Refactored location/distance state to use FLYSArtifact instead of WINFOArtifact.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 3265
diff changeset
60 return false;
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
61 }
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
62
4043
eb5564662e19 Cosmetics, documentation.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents: 3628
diff changeset
63 /** Validate selected locations. */
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
64 protected boolean validateLocations(final D4EArtifact flys) throws IllegalArgumentException {
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
65 final StateData dValues = getData(flys, LOCATIONS);
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
66 final String values = dValues != null ? (String) dValues.getValue() : null;
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
67
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
68 if (values == null || values.length() == 0) {
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
69 throw new IllegalArgumentException("error_empty_state");
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
70 }
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
71
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
72 final double[] absMinMax = getMinMax(flys);
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
73 final double[] relMinMax = getMinMaxFromString(values);
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
74
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
75 if (relMinMax[0] < absMinMax[0] || relMinMax[0] > absMinMax[1]) {
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
76 throw new IllegalArgumentException("error_feed_from_out_of_range");
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
77 }
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
78
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
79 if (relMinMax[1] > absMinMax[1] || relMinMax[1] < absMinMax[0]) {
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
80 throw new IllegalArgumentException("error_feed_to_out_of_range");
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
81 }
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
82
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
83 return true;
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
84 }
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
85
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
86 /**
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
87 * Extracts the min/max values from String <i>s</i>. An
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
88 * IllegalArgumentException is thrown if there is a value that throws a
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
89 * NumberFormatException.
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
90 *
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
91 * @param s
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
92 * String that contains whitespace separated double values.
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
93 *
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
94 * @return a 2dmin array [min,max].
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
95 */
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
96 public static double[] getMinMaxFromString(final String s) throws IllegalArgumentException {
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
97 final String[] values = s.split(" ");
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
98
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
99 final double[] minmax = new double[] { Double.MAX_VALUE, -Double.MAX_VALUE };
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
100
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
101 for (final String v : values) {
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
102 try {
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
103 final double value = Double.valueOf(v);
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
104
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
105 minmax[0] = minmax[0] < value ? minmax[0] : value;
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
106 minmax[1] = minmax[1] > value ? minmax[1] : value;
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
107 }
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
108 catch (final NumberFormatException nfe) {
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
109 throw new IllegalArgumentException("error_invalid_double_value");
627
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
110 }
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
111 }
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
112
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
113 return minmax;
833290f16f09 ISSUE-85 (part I/III) Added further fields for the location/range state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 624
diff changeset
114 }
628
51b69bca4560 ISSUE-85 (part III/III) Use the given kilometer values for the waterlevel computation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 627
diff changeset
115
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
116 public static double[] getLocations(final WINFOArtifact flys) {
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
117 final RangeAccess ra = new RangeAccess(flys);
8451
e3e5d6bb4902 (issue1733) Use rangeaccess to access range information in location select
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8202
diff changeset
118 return ra.getLocations();
628
51b69bca4560 ISSUE-85 (part III/III) Use the given kilometer values for the waterlevel computation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 627
diff changeset
119 }
9175
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
120
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
121 @Override
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
122 protected String getTitle(final CallContext context) {
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
123 // REMARK: that is how it should be: return Resources.getMsg(context.getMeta(), getID());
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
124 return Resources.getMsg(context.getMeta(), "state.title.location_distance_state");
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
125 }
34dc0163ad2d DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
gernotbelger
parents: 8490
diff changeset
126
136
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
127 }
2e510c998adb New state for the location/distance input and some litte modifications of the DefaultState.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
128 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org