Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/ScenarioTypeState.java @ 9062:5198066492a9
Teilabschnitt Salix State
author | gernotbelger |
---|---|
date | Mon, 07 May 2018 17:25:53 +0200 |
parents | c265c9fc915c |
children | 2f5052835b76 |
comparison
equal
deleted
inserted
replaced
9061:41ec5095506f | 9062:5198066492a9 |
---|---|
1 | 1 |
2 package org.dive4elements.river.artifacts.uinfo.salix; | 2 package org.dive4elements.river.artifacts.uinfo.salix; |
3 | 3 |
4 import org.dive4elements.river.artifacts.states.BooleanChoiceState; | 4 import java.util.ArrayList; |
5 import java.util.List; | |
6 | |
7 import org.dive4elements.river.artifacts.states.RadioSelect; | |
5 | 8 |
6 /** | 9 /** |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
8 */ | 11 */ |
9 public class ScenarioTypeState extends BooleanChoiceState { | 12 public class ScenarioTypeState extends RadioSelect { |
10 | |
11 private static final long serialVersionUID = 1L; | 13 private static final long serialVersionUID = 1L; |
12 | 14 |
13 public ScenarioTypeState() { | 15 public ScenarioTypeState() { |
14 super("activeMsg1", "activeMsg2", "activeMsg3"); // kriege den state irgendwie nicht selbst hin | 16 super(); |
15 } | 17 } |
16 | 18 |
19 @Override | |
20 protected List<String> makeEntries() { | |
21 final List<String> entries = new ArrayList<>(); | |
22 entries.add("scenarioType.option1"); | |
23 entries.add("scenarioType.option2"); | |
24 entries.add("scenarioType.option3"); | |
25 return entries; | |
26 | |
27 } | |
17 } | 28 } |