# HG changeset patch # User Björn Ricks # Date 1349360909 -7200 # Node ID 470a61d644cdac03d40a1f74389c488b8867af09 # Parent 46c1210be26b2ece1b0037cb13acbd4578b6c6e3 Allow to set a uiprovider for a static state diff -r 46c1210be26b -r 470a61d644cd flys-artifacts/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/artifacts/GaugeDischargeCurveArtifact.java: diff -r 46c1210be26b -r 470a61d644cd flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StaticState.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 :