[Dive4elements-commits] [PATCH 4 of 4] Use WikiLink class for Help links

Wald Commits scm-commit at wald.intevation.org
Fri Jun 7 11:50:02 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1370598593 -7200
# Node ID 175df4c01ae7319733ba3152be0ee9951f018c7a
# Parent  bfbccad9c3f07b51161d8298f20c955fca11a274
Use WikiLink class for Help links

diff -r bfbccad9c3f0 -r 175df4c01ae7 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/AbstractUIProvider.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/AbstractUIProvider.java	Fri Jun 07 11:49:03 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/AbstractUIProvider.java	Fri Jun 07 11:49:53 2013 +0200
@@ -19,6 +19,7 @@
 import com.smartgwt.client.widgets.layout.VLayout;
 
 import org.dive4elements.river.client.client.FLYSConstants;
+import org.dive4elements.river.client.client.FLYS;
 import org.dive4elements.river.client.client.event.HasStepBackHandlers;
 import org.dive4elements.river.client.client.event.HasStepForwardHandlers;
 import org.dive4elements.river.client.client.event.StepBackEvent;
@@ -178,11 +179,11 @@
 
 
     @Override
-    public Canvas createHelpLink(DataList dataList, Data data) {
+    public Canvas createHelpLink(DataList dataList, Data data, FLYS instance) {
         String iUrl    = GWT.getHostPageBaseURL() + MSG.getFeatureInfo();
         String helpUrl = dataList.getHelpText();
 
-        return new ImgLink(iUrl, helpUrl, 30, 30, true);
+        return new WikiImgLink(iUrl, helpUrl, 30, 30, instance);
     }
 
 
diff -r bfbccad9c3f0 -r 175df4c01ae7 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java	Fri Jun 07 11:49:03 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java	Fri Jun 07 11:49:53 2013 +0200
@@ -576,7 +576,7 @@
 
         if (current != null && uiProvider != null) {
             Canvas c = uiProvider.create(current);
-            Canvas h = uiProvider.createHelpLink(current, null);
+            Canvas h = uiProvider.createHelpLink(current, null, this.flys);
 
             HLayout wrapper = new HLayout();
             wrapper.addMember(h);
diff -r bfbccad9c3f0 -r 175df4c01ae7 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/UIProvider.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/UIProvider.java	Fri Jun 07 11:49:03 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/UIProvider.java	Fri Jun 07 11:49:53 2013 +0200
@@ -18,6 +18,8 @@
 import org.dive4elements.river.client.shared.model.Artifact;
 import org.dive4elements.river.client.shared.model.Collection;
 
+import org.dive4elements.river.client.client.FLYS;
+
 /**
  * This interface describes a method that creates a Canvas element displaying
  * DataItems for a current state of the artifact.
@@ -48,7 +50,7 @@
     public Canvas createOld(DataList dataList);
 
 
-    public Canvas createHelpLink(DataList dataList, Data data);
+    public Canvas createHelpLink(DataList dataList, Data data, FLYS instance);
 
 
     /**


More information about the Dive4elements-commits mailing list