# HG changeset patch # User Andre Heinecke # Date 1370603180 -7200 # Node ID a8613826bcac26bca327f354da4b7dd10d7fcb09 # Parent 175df4c01ae7319733ba3152be0ee9951f018c7a Call update after setting the instance Also adds an override and changes the ambigousness of the variable name "flys" diff -r 175df4c01ae7 -r a8613826bcac gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WikiImgLink.java --- 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);