comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSHeader.java @ 1399:748e7c828d03

Issue312. Moved images and get image urls from constants to completly support IE7. flys-client/trunk@3284 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 17 Nov 2011 14:10:51 +0000
parents b92281182c6b
children 047a44270348
comparison
equal deleted inserted replaced
1398:3f6d2f18ee7b 1399:748e7c828d03
15 15
16 /** 16 /**
17 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 17 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
18 */ 18 */
19 public class FLYSHeader extends HLayout { 19 public class FLYSHeader extends HLayout {
20
21 /** The interface that provides the image resources. */
22 private FLYSImages IMAGES = GWT.create(FLYSImages.class);
23 20
24 /** The interface that provides the message resources. */ 21 /** The interface that provides the message resources. */
25 private FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); 22 private FLYSConstants MESSAGES = GWT.create(FLYSConstants.class);
26 23
27 /** The height used for this header.*/ 24 /** The height used for this header.*/
39 setWidth100(); 36 setWidth100();
40 setHeight(HEIGHT); 37 setHeight(HEIGHT);
41 setLayoutLeftMargin(5); 38 setLayoutLeftMargin(5);
42 setLayoutRightMargin(5); 39 setLayoutRightMargin(5);
43 40
44 ImageResource flysRes = IMAGES.logoFlys(); 41 String baseUrl = GWT.getHostPageBaseURL();
45 ImageResource bfgRes = IMAGES.logoBfg();
46 42
47 Img flys = new Img( 43 Img flys = new Img(
48 flysRes.getURL(), 44 baseUrl + MESSAGES.flysLogo(),
49 calcWidth(flysRes,IMG_HEIGHT), 45 50,
50 IMG_HEIGHT); 46 IMG_HEIGHT);
51 47
52 Img bfg = new Img( 48 Img bfg = new Img(
53 bfgRes.getURL(), 49 baseUrl + MESSAGES.bfgLogo(),
54 calcWidth(bfgRes, HEIGHT), 50 112,
55 HEIGHT); 51 HEIGHT);
56 52
57 Label fullname = new Label(MESSAGES.fullname()); 53 Label fullname = new Label(MESSAGES.fullname());
58 fullname.setHeight(HEIGHT - IMG_HEIGHT); 54 fullname.setHeight(HEIGHT - IMG_HEIGHT);
59 fullname.setStyleName ("fontNormalMid"); 55 fullname.setStyleName ("fontNormalMid");

http://dive4elements.wald.intevation.org