Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ImgLink.java @ 1343:0d3d3860beb5
Added a ImgLink class which creates an html link with an image.
flys-client/trunk@2997 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 17:28:24 +0000 |
parents | |
children | 3c8ae5605a51 |
comparison
equal
deleted
inserted
replaced
1342:9bf91bce6ca4 | 1343:0d3d3860beb5 |
---|---|
1 package de.intevation.flys.client.client.ui; | |
2 | |
3 import com.smartgwt.client.types.Overflow; | |
4 import com.smartgwt.client.widgets.HTMLPane; | |
5 | |
6 | |
7 public class ImgLink extends HTMLPane { | |
8 | |
9 public ImgLink(String imgUrl, String href, int width, int height) { | |
10 super(); | |
11 | |
12 setContents("<a href='" + href + "'><img src='" + imgUrl + "'></a>"); | |
13 setWidth(width); | |
14 setHeight(height); | |
15 setOverflow(Overflow.VISIBLE); | |
16 } | |
17 } |