Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/YearChoice.java @ 9057:2be202a8cb89
local merge
author | gernotbelger |
---|---|
date | Fri, 04 May 2018 14:50:13 +0200 |
parents | 95643dffd006 |
children | 766890addcb2 |
comparison
equal
deleted
inserted
replaced
9054:95643dffd006 | 9057:2be202a8cb89 |
---|---|
6 * documentation coming with Dive4Elements River for details. | 6 * documentation coming with Dive4Elements River for details. |
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.artifacts.sinfo.collision; | 9 package org.dive4elements.river.artifacts.sinfo.collision; |
10 | 10 |
11 import org.dive4elements.river.artifacts.states.BooleanChoiceState; | 11 import java.util.ArrayList; |
12 import java.util.List; | |
13 | |
14 import org.dive4elements.river.artifacts.states.RadioSelect; | |
12 | 15 |
13 /** | 16 /** |
14 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 17 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
15 */ | 18 */ |
16 public class YearChoice extends BooleanChoiceState { | 19 public class YearChoice extends RadioSelect { |
17 | |
18 private static final long serialVersionUID = 1L; | 20 private static final long serialVersionUID = 1L; |
19 | 21 |
20 public YearChoice() { | 22 public YearChoice() { |
21 super("option", "active", "inactive"); // TODO: RADIO-Btn-Impl | 23 super(); |
24 } | |
25 | |
26 @Override | |
27 protected List<String> makeEntries() { | |
28 final List<String> entries = new ArrayList<>(); | |
29 entries.add("state.sinfo.year"); | |
30 entries.add("state.sinfo.epoch"); | |
31 return entries; | |
32 | |
22 } | 33 } |
23 } | 34 } |