comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java @ 878:d7c322a3bb32

Introduced i18n for the loading panel used during floodmap calculation. flys-client/trunk@2707 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 12 Sep 2011 13:35:20 +0000
parents d5fb88ba99d2
children a9dd792444a1
comparison
equal deleted inserted replaced
877:f343b4c2d135 878:d7c322a3bb32
14 import com.smartgwt.client.widgets.Img; 14 import com.smartgwt.client.widgets.Img;
15 import com.smartgwt.client.widgets.Label; 15 import com.smartgwt.client.widgets.Label;
16 import com.smartgwt.client.widgets.layout.VLayout; 16 import com.smartgwt.client.widgets.layout.VLayout;
17 17
18 import de.intevation.flys.client.client.Config; 18 import de.intevation.flys.client.client.Config;
19 import de.intevation.flys.client.client.FLYSConstants;
19 import de.intevation.flys.client.client.FLYSImages; 20 import de.intevation.flys.client.client.FLYSImages;
20 import de.intevation.flys.client.client.services.DescribeArtifactService; 21 import de.intevation.flys.client.client.services.DescribeArtifactService;
21 import de.intevation.flys.client.client.services.DescribeArtifactServiceAsync; 22 import de.intevation.flys.client.client.services.DescribeArtifactServiceAsync;
22 import de.intevation.flys.client.shared.model.Artifact; 23 import de.intevation.flys.client.shared.model.Artifact;
23 import de.intevation.flys.client.shared.model.CalculationMessage; 24 import de.intevation.flys.client.shared.model.CalculationMessage;
28 public static final int UPDATE_INTERVAL = 1000 * 3; 29 public static final int UPDATE_INTERVAL = 1000 * 3;
29 30
30 public static final DescribeArtifactServiceAsync describe = 31 public static final DescribeArtifactServiceAsync describe =
31 GWT.create(DescribeArtifactService.class); 32 GWT.create(DescribeArtifactService.class);
32 33
33 private FLYSImages IMAGES = GWT.create(FLYSImages.class); 34 private FLYSImages IMAGES = GWT.create(FLYSImages.class);
35 private FLYSConstants MSG = GWT.create(FLYSConstants.class);
34 36
35 37
36 protected CollectionView parent; 38 protected CollectionView parent;
37 protected Artifact artifact; 39 protected Artifact artifact;
38 40
162 CalculationMessage calcMsg = messages.get(0); 164 CalculationMessage calcMsg = messages.get(0);
163 title.setContents(getStepTitle(calcMsg)); 165 title.setContents(getStepTitle(calcMsg));
164 msg.setContents(calcMsg.getMessage()); 166 msg.setContents(calcMsg.getMessage());
165 } 167 }
166 else { 168 else {
167 title.setContents("Berechnung wurde gestartet."); 169 title.setContents(MSG.calculationStarted());
168 } 170 }
169 } 171 }
170 172
171 173
172 protected String getStepTitle(CalculationMessage msg) { 174 protected String getStepTitle(CalculationMessage msg) {
173 return "Schritt " + msg.getCurrentStep() + "/" + msg.getSteps(); 175 return MSG.step() + " " + msg.getCurrentStep() + "/" + msg.getSteps();
174 } 176 }
175 177
176 178
177 private void finish() { 179 private void finish() {
178 parent.removeChild(this); 180 parent.removeChild(this);

http://dive4elements.wald.intevation.org