changeset 883:cd286de8f2ad

Datacage window in Output tabs fetches information for the current output now. flys-client/trunk@2717 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 13 Sep 2011 10:47:28 +0000
parents d3b4010d2c89
children ace7e9cfbb7f
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java
diffstat 3 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Sep 13 07:18:14 2011 +0000
+++ b/flys-client/ChangeLog	Tue Sep 13 10:47:28 2011 +0000
@@ -1,3 +1,12 @@
+2011-09-13  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/OutputTab.java: Added
+	  method that returns the name of the current output.
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java:
+	  Resolved TODO: the datacage window fetches the data for the current
+	  output now.
+
 2011-09-13  Ingo Weinzierl <ingo@intevation.de>
 
 	flys/issue293 (Karte: Farbliche Anpassung der digitalisierten Objekte)
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java	Tue Sep 13 07:18:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java	Tue Sep 13 10:47:28 2011 +0000
@@ -32,5 +32,10 @@
 
         setPane(new Label("Implement concrete subclasses to vary the output."));
     }
+
+
+    public String getOutputName() {
+        return mode.getName();
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java	Tue Sep 13 07:18:14 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java	Tue Sep 13 10:47:28 2011 +0000
@@ -158,7 +158,7 @@
         Artifact artifact = getArtifact();
         User     user     = getUser();
 
-        String outs = ""; // TODO: fetch outs
+        String outs = chartTab.getOutputName();
 
         final DatacageWindow dc = new DatacageWindow(
             artifact, user, outs, view);

http://dive4elements.wald.intevation.org