comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java @ 7958:632c724fed2d

i18n for WMS legend window title.
author Tom Gottfried <tom@intevation.de>
date Fri, 20 Jun 2014 12:51:08 +0200
parents ea9eef426962
children 5e38e2924c07
comparison
equal deleted inserted replaced
7957:26971f97105f 7958:632c724fed2d
8 8
9 package org.dive4elements.river.client.client.ui.map; 9 package org.dive4elements.river.client.client.ui.map;
10 10
11 import java.util.List; 11 import java.util.List;
12 12
13 import com.google.gwt.core.client.GWT;
14
13 import com.smartgwt.client.types.ImageStyle; 15 import com.smartgwt.client.types.ImageStyle;
14 import com.smartgwt.client.types.VerticalAlignment; 16 import com.smartgwt.client.types.VerticalAlignment;
15 import com.smartgwt.client.widgets.Canvas; 17 import com.smartgwt.client.widgets.Canvas;
16 import com.smartgwt.client.widgets.Img; 18 import com.smartgwt.client.widgets.Img;
17 import com.smartgwt.client.widgets.Label; 19 import com.smartgwt.client.widgets.Label;
18 import com.smartgwt.client.widgets.Window; 20 import com.smartgwt.client.widgets.Window;
19 import com.smartgwt.client.widgets.layout.HLayout; 21 import com.smartgwt.client.widgets.layout.HLayout;
20 import com.smartgwt.client.widgets.layout.VLayout; 22 import com.smartgwt.client.widgets.layout.VLayout;
21 23
24 import org.dive4elements.river.client.client.FLYSConstants;
25
22 import org.dive4elements.river.client.shared.MapUtils; 26 import org.dive4elements.river.client.shared.MapUtils;
23 import org.dive4elements.river.client.shared.model.AttributedTheme; 27 import org.dive4elements.river.client.shared.model.AttributedTheme;
24 import org.dive4elements.river.client.shared.model.Theme; 28 import org.dive4elements.river.client.shared.model.Theme;
25 import org.dive4elements.river.client.shared.model.ThemeList; 29 import org.dive4elements.river.client.shared.model.ThemeList;
26 30
27 31
28 public class LegendWindow extends Window { 32 public class LegendWindow extends Window {
29 33
34 protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
35
30 private ThemeList themeList; 36 private ThemeList themeList;
31 37
32 private VLayout legendContainer; 38 private VLayout legendContainer;
39
33 40
34 public LegendWindow(ThemeList themeList) { 41 public LegendWindow(ThemeList themeList) {
35 this.themeList = themeList; 42 this.themeList = themeList;
36 this.legendContainer = new VLayout(); 43 this.legendContainer = new VLayout();
37 44
90 private void init() { 97 private void init() {
91 legendContainer.setAutoHeight(); 98 legendContainer.setAutoHeight();
92 legendContainer.setLayoutAlign(VerticalAlignment.TOP); 99 legendContainer.setLayoutAlign(VerticalAlignment.TOP);
93 legendContainer.setAlign(VerticalAlignment.CENTER); 100 legendContainer.setAlign(VerticalAlignment.CENTER);
94 101
95 setTitle("WMS Legend"); 102 setTitle(MSG.wms_legend());
96 setAutoSize(true); 103 setAutoSize(true);
97 setCanDragResize(true); 104 setCanDragResize(true);
98 setIsModal(false); 105 setIsModal(false);
99 setShowModalMask(false); 106 setShowModalMask(false);
100 setLayoutAlign(VerticalAlignment.TOP); 107 setLayoutAlign(VerticalAlignment.TOP);

http://dive4elements.wald.intevation.org