Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.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 | ea9a73782de4 |
children | 047a44270348 |
comparison
equal
deleted
inserted
replaced
1398:3f6d2f18ee7b | 1399:748e7c828d03 |
---|---|
29 public static final int UPDATE_INTERVAL = 1000 * 3; | 29 public static final int UPDATE_INTERVAL = 1000 * 3; |
30 | 30 |
31 public static final DescribeArtifactServiceAsync describe = | 31 public static final DescribeArtifactServiceAsync describe = |
32 GWT.create(DescribeArtifactService.class); | 32 GWT.create(DescribeArtifactService.class); |
33 | 33 |
34 private FLYSImages IMAGES = GWT.create(FLYSImages.class); | |
35 private FLYSConstants MSG = GWT.create(FLYSConstants.class); | 34 private FLYSConstants MSG = GWT.create(FLYSConstants.class); |
36 | 35 |
37 | 36 |
38 protected CollectionView parent; | 37 protected CollectionView parent; |
39 protected Artifact artifact; | 38 protected Artifact artifact; |
79 this.artifact = artifact; | 78 this.artifact = artifact; |
80 } | 79 } |
81 | 80 |
82 | 81 |
83 protected VLayout createDialog() { | 82 protected VLayout createDialog() { |
83 | |
84 String baseUrl = GWT.getHostPageBaseURL(); | |
85 | |
84 title.setStyleName("loading-title"); | 86 title.setStyleName("loading-title"); |
85 title.setHeight(25); | 87 title.setHeight(25); |
86 title.setWidth100(); | 88 title.setWidth100(); |
87 | 89 |
88 msg.setStyleName("loading-message"); | 90 msg.setStyleName("loading-message"); |
89 msg.setValign(VerticalAlignment.TOP); | 91 msg.setValign(VerticalAlignment.TOP); |
90 msg.setWidth100(); | 92 msg.setWidth100(); |
91 msg.setHeight(100); | 93 msg.setHeight(100); |
92 | 94 |
93 ImageResource res = IMAGES.loading(); | 95 Img img = new Img(baseUrl + MSG.loadingImg(), 25, 25); |
94 Img img = new Img(res.getURL(), 25, 25); | |
95 | 96 |
96 VLayout box = new VLayout(); | 97 VLayout box = new VLayout(); |
97 box.setStyleName("loading-box"); | 98 box.setStyleName("loading-box"); |
98 box.setAlign(VerticalAlignment.TOP); | 99 box.setAlign(VerticalAlignment.TOP); |
99 box.setDefaultLayoutAlign(VerticalAlignment.TOP); | 100 box.setDefaultLayoutAlign(VerticalAlignment.TOP); |