changeset 4035:470a61d644cd

Allow to set a uiprovider for a static state
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 04 Oct 2012 16:28:29 +0200
parents 46c1210be26b
children 10e20830e4e9
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.java
diffstat 2 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Oct 04 16:26:48 2012 +0200
+++ b/flys-artifacts/ChangeLog	Thu Oct 04 16:28:29 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-04	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/StaticState.java:
+	  Allow to set an uiprovider for a static state.
+
 2012-10-04	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/GaugeDischargeCurveArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.java	Thu Oct 04 16:26:48 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.java	Thu Oct 04 16:28:29 2012 +0200
@@ -25,6 +25,8 @@
     /** The logger that is used in this state. */
     private static final Logger logger = Logger.getLogger(StaticState.class);
 
+    private static String uiprovider;
+
 
     public StaticState() {
         super();
@@ -116,5 +118,17 @@
     public void addOutput(Output out) {
         super.addOutput(out);
     }
+
+    @Override
+    protected String getUIProvider() {
+        return this.uiprovider;
+    }
+
+    /**
+     * Allow to set the uiprovider for displaying the static data
+     */
+    public void setUIProvider(String uiprovider) {
+        this.uiprovider = uiprovider;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org