9267
|
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 |
|
9 package org.dive4elements.river.artifacts.bundu.bezugswst; |
|
10 |
9274
|
11 import org.dive4elements.artifactdatabase.data.StateData; |
|
12 import org.dive4elements.artifacts.Artifact; |
|
13 import org.dive4elements.artifacts.CallContext; |
|
14 import org.dive4elements.artifacts.common.utils.XMLUtils; |
9267
|
15 import org.dive4elements.river.artifacts.states.DefaultState; |
9274
|
16 import org.dive4elements.river.artifacts.uinfo.salix.ScenarioTypeState; |
|
17 import org.w3c.dom.Element; |
9267
|
18 |
|
19 public class LoadQSeriesSelectState extends DefaultState { |
|
20 private static final long serialVersionUID = 1L; |
|
21 |
|
22 final String datakey = "year_input_q_series"; |
|
23 |
|
24 /** |
|
25 * The default constructor that initializes an empty State object. |
|
26 */ |
|
27 public LoadQSeriesSelectState() { |
|
28 } |
|
29 |
|
30 /** Year Select Widget. */ |
|
31 @Override |
|
32 protected String getUIProvider() { |
|
33 return "bundu.wst.state.load_single_q_series"; |
|
34 } |
|
35 |
9274
|
36 @Override |
|
37 protected Element createData(final XMLUtils.ElementCreator cr, final Artifact artifact, final StateData data, final CallContext context) { |
|
38 return ScenarioTypeState.changeHeaderForCurrentState("state.bundu.wst.fix.year_length", data.getName(), cr, context); |
|
39 } |
9267
|
40 } |