Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/AnalysisPeriods.java @ 2698:15523818eae4
Implemented states for fix-analysis.
flys-artifacts/trunk@4408 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 15 May 2012 13:08:27 +0000 |
parents | 9e9eb9d97548 |
children | 0ca00d547f35 |
comparison
equal
deleted
inserted
replaced
2697:8a6ce15ced7f | 2698:15523818eae4 |
---|---|
31 * The default constructor that initializes an empty State object. | 31 * The default constructor that initializes an empty State object. |
32 */ | 32 */ |
33 public AnalysisPeriods() { | 33 public AnalysisPeriods() { |
34 } | 34 } |
35 | 35 |
36 | 36 @Override |
37 /** | 37 protected String getUIProvider() { |
38 * Initialize the state based on the state node in the configuration. | 38 return "fix.period_panel"; |
39 * | |
40 * @param config The state configuration node. | |
41 */ | |
42 public void setup(Node config) { | |
43 super.setup(config); | |
44 } | 39 } |
45 | 40 |
46 | |
47 protected Element createData( | |
48 XMLUtils.ElementCreator cr, | |
49 Artifact artifact, | |
50 StateData data, | |
51 CallContext context) | |
52 { | |
53 Element select = ProtocolUtils.createArtNode( | |
54 cr, "select", | |
55 new String[] { "uiprovider" }, | |
56 new String[] { "time_range_selector" }); | |
57 cr.addAttr(select, "name", data.getName(), true); | |
58 | |
59 Element label = ProtocolUtils.createArtNode( | |
60 cr, "label", null, null); | |
61 | |
62 select.appendChild(label); | |
63 | |
64 label.setTextContent(Resources.getMsg( | |
65 context.getMeta(), | |
66 getID(), | |
67 getID())); | |
68 | |
69 return select; | |
70 } | |
71 | |
72 | |
73 @Override | |
74 protected Element[] createItems( | |
75 XMLUtils.ElementCreator cr, | |
76 Artifact artifact, | |
77 String name, | |
78 CallContext context) | |
79 { | |
80 return null; | |
81 } | |
82 | |
83 | |
84 protected Object getLower(FLYSArtifact artifact) { | |
85 return null; | |
86 } | |
87 | |
88 | |
89 protected Object getUpper(FLYSArtifact artifact) { | |
90 return null; | |
91 } | |
92 | |
93 | |
94 @Override | |
95 protected String getUIProvider() { | |
96 return "time_range_selector"; | |
97 } | |
98 } | 41 } |
99 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 42 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |