Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/YearChoice.java @ 9369:1a4d2ce77423
radio choice fix
author | gernotbelger |
---|---|
date | Thu, 02 Aug 2018 17:39:13 +0200 |
parents | 2f5052835b76 |
children |
rev | line source |
---|---|
9050 | 1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9054
95643dffd006
rename grounding->collision; inundation_duration->flood_duration
gernotbelger
parents:
9050
diff
changeset
|
9 package org.dive4elements.river.artifacts.sinfo.collision; |
9050 | 10 |
9178
2f5052835b76
uinfo inundationduration langjähr. Mittel, Uedauern.properties, Meldung
gernotbelger
parents:
9074
diff
changeset
|
11 import java.util.LinkedHashMap; |
9057 | 12 |
9178
2f5052835b76
uinfo inundationduration langjähr. Mittel, Uedauern.properties, Meldung
gernotbelger
parents:
9074
diff
changeset
|
13 import org.dive4elements.artifacts.Artifact; |
2f5052835b76
uinfo inundationduration langjähr. Mittel, Uedauern.properties, Meldung
gernotbelger
parents:
9074
diff
changeset
|
14 import org.dive4elements.artifacts.CallMeta; |
9057 | 15 import org.dive4elements.river.artifacts.states.RadioSelect; |
9050 | 16 |
17 /** | |
18 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
19 */ | |
9057 | 20 public class YearChoice extends RadioSelect { |
9050 | 21 private static final long serialVersionUID = 1L; |
22 | |
23 public YearChoice() { | |
9057 | 24 super(); |
25 } | |
26 | |
27 @Override | |
9178
2f5052835b76
uinfo inundationduration langjähr. Mittel, Uedauern.properties, Meldung
gernotbelger
parents:
9074
diff
changeset
|
28 protected LinkedHashMap<String, String> makeEntries(final CallMeta meta, final Artifact artifact) { |
2f5052835b76
uinfo inundationduration langjähr. Mittel, Uedauern.properties, Meldung
gernotbelger
parents:
9074
diff
changeset
|
29 final LinkedHashMap<String, String> entries = new LinkedHashMap<>(); |
2f5052835b76
uinfo inundationduration langjähr. Mittel, Uedauern.properties, Meldung
gernotbelger
parents:
9074
diff
changeset
|
30 entries.put("state.sinfo.year", null); |
2f5052835b76
uinfo inundationduration langjähr. Mittel, Uedauern.properties, Meldung
gernotbelger
parents:
9074
diff
changeset
|
31 entries.put("state.sinfo.epoch", null); |
9057 | 32 return entries; |
9074 | 33 } |
9057 | 34 |
9369 | 35 @Override |
36 protected String getDatakey() { | |
37 | |
38 return "ye_select"; | |
39 } | |
40 | |
41 @Override | |
42 protected String getUIProvider() { | |
43 | |
44 return "collision_yearchoice_radio_panel"; | |
45 } | |
46 | |
9050 | 47 } |