changeset 6232:175df4c01ae7

Use WikiLink class for Help links
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 07 Jun 2013 11:49:53 +0200
parents bfbccad9c3f0
children a8613826bcac
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/AbstractUIProvider.java gwt-client/src/main/java/org/dive4elements/river/client/client/ui/ParameterList.java gwt-client/src/main/java/org/dive4elements/river/client/client/ui/UIProvider.java
diffstat 3 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }
 
 
--- 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);
--- 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);
 
 
     /**

http://dive4elements.wald.intevation.org