diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java @ 916:a1a5dc2b9e34

Improved the DEM datacage panel to display the DEMs only. flys-client/trunk@2779 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 16 Sep 2011 13:24:36 +0000
parents 2b6efb8b2301
children 07aa1f504491
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java	Fri Sep 16 12:56:48 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java	Fri Sep 16 13:24:36 2011 +0000
@@ -57,6 +57,7 @@
     protected Artifact artifact;
     protected User     user;
     protected String   outs;
+    protected String   parameters;
 
     protected TreeGrid treeGrid;
     protected Tree     tree;
@@ -79,13 +80,29 @@
         this(artifact, user, outs, true);
     }
 
-    public DatacageWidget(Artifact artifact, User user, String outs,
-         boolean showButton) {
+    public DatacageWidget(
+        Artifact   artifact,
+        User       user,
+        String     outs,
+        boolean    showButton
+    ) {
+        this(artifact, user, outs, null, showButton);
+    }
+
+
+    public DatacageWidget(
+        Artifact   artifact,
+        User       user,
+        String     outs,
+        String     parameters,
+        boolean    showButton
+    ) {
         this();
 
-        this.artifact = artifact;
-        this.user     = user;
-        this.outs     = outs;
+        this.artifact   = artifact;
+        this.user       = user;
+        this.outs       = outs;
+        this.parameters = parameters;
 
         toLoad = new ToLoad();
 
@@ -130,6 +147,18 @@
     }
 
 
+    public DatacageWidget(
+        Artifact        artifact,
+        User            user,
+        String          outs,
+        DatacageHandler handler,
+        String          parameters
+    ) {
+        this(artifact, user, outs, handler);
+        this.parameters = parameters;
+    }
+
+
     /**
      * @param handler Handler to be added (notified on add-action).
      */
@@ -253,6 +282,7 @@
             artifactId,
             userId,
             outs,
+            parameters,
             new AsyncCallback<DataCageTree>() {
                 public void onFailure(Throwable caught) {
                     GWT.log("Could not load meta data.");

http://dive4elements.wald.intevation.org