diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/AnalysisPeriods.java	Tue May 15 13:04:01 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/AnalysisPeriods.java	Tue May 15 13:08:27 2012 +0000
@@ -33,67 +33,10 @@
     public AnalysisPeriods() {
     }
 
-
-    /**
-     * Initialize the state based on the state node in the configuration.
-     *
-     * @param config The state configuration node.
-     */
-    public void setup(Node config) {
-        super.setup(config);
+    @Override
+    protected String getUIProvider() {
+        return "fix.period_panel";
     }
 
-
-    protected Element createData(
-        XMLUtils.ElementCreator cr,
-        Artifact    artifact,
-        StateData   data,
-        CallContext context)
-    {
-        Element select = ProtocolUtils.createArtNode(
-            cr, "select",
-            new String[] { "uiprovider" },
-            new String[] { "time_range_selector" });
-        cr.addAttr(select, "name", data.getName(), true);
-
-        Element label = ProtocolUtils.createArtNode(
-            cr, "label", null, null);
-
-        select.appendChild(label);
-
-        label.setTextContent(Resources.getMsg(
-            context.getMeta(),
-            getID(),
-            getID()));
-
-        return select;
-    }
-
-
-    @Override
-    protected Element[] createItems(
-        XMLUtils.ElementCreator cr,
-        Artifact    artifact,
-        String      name,
-        CallContext context)
-    {
-        return null;
-    }
-
-
-    protected Object getLower(FLYSArtifact artifact) {
-        return null;
-    }
-
-
-    protected Object getUpper(FLYSArtifact artifact) {
-        return null;
-    }
-
-
-    @Override
-    protected String getUIProvider() {
-        return "time_range_selector";
-    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org