changeset 6233:a8613826bcac

Call update after setting the instance Also adds an override and changes the ambigousness of the variable name "flys"
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 07 Jun 2013 13:06:20 +0200
parents 175df4c01ae7
children 02ea1c3fba8c
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WikiImgLink.java
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WikiImgLink.java	Fri Jun 07 11:49:53 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WikiImgLink.java	Fri Jun 07 13:06:20 2013 +0200
@@ -15,15 +15,17 @@
 
 public class WikiImgLink extends ImgLink {
 
-    protected FLYS flys;
+    protected FLYS instance;
 
-    public WikiImgLink(String imgUrl, String href, int width, int height, FLYS flys) {
+    public WikiImgLink(String imgUrl, String href, int width, int height, FLYS instance) {
         super(imgUrl, href, width, height, false);
-        this.flys = flys;
+        this.instance = instance;
+        update();
     }
 
+    @Override
     protected void update() {
-        setContents(WikiLinks.imageLinkHTML(flys, href, imgUrl));
+        setContents(WikiLinks.imageLinkHTML(instance, href, imgUrl));
         setWidth(width);
         setHeight(height);
         setOverflow(Overflow.VISIBLE);

http://dive4elements.wald.intevation.org