comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java @ 796:cd8603aaa730

Improved the process of creating OutputTabs. Added support for map output. flys-client/trunk@2312 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 08 Jul 2011 08:54:08 +0000
parents
children cc3f481e9484
comparison
equal deleted inserted replaced
795:68b8770af6c5 796:cd8603aaa730
1 package de.intevation.flys.client.client.ui.map;
2
3 import com.smartgwt.client.widgets.Canvas;
4 import com.smartgwt.client.widgets.layout.HLayout;
5
6 import de.intevation.flys.client.shared.model.Collection;
7 import de.intevation.flys.client.shared.model.OutputMode;
8
9 import de.intevation.flys.client.client.ui.CollectionView;
10 import de.intevation.flys.client.client.ui.OutputTab;
11
12
13 public class MapOutputTab extends OutputTab {
14
15 protected CollectionView parent;
16
17 protected Canvas themePanel;
18 protected Canvas mapPanel;
19
20
21 public MapOutputTab(
22 String title,
23 Collection collection,
24 OutputMode mode,
25 CollectionView collectionView
26 ){
27 super(title, collection, mode);
28 this.parent = collectionView;
29
30 initLayout();
31 }
32
33
34 protected void initLayout() {
35 themePanel = createThemePanel();
36 mapPanel = createMapPanel();
37
38 HLayout layout = new HLayout();
39 layout.setWidth100();
40 layout.setHeight100();
41 layout.addMember(themePanel);
42 layout.addMember(mapPanel);
43
44 setPane(layout);
45 }
46
47
48 protected Canvas createThemePanel() {
49 Canvas c = new Canvas();
50 c.setWidth(200);
51 c.setHeight100();
52 c.setBorder("1px solid blue");
53
54 return c;
55 }
56
57
58 protected Canvas createMapPanel() {
59 Canvas c = new Canvas();
60 c.setWidth("*");
61 c.setHeight100();
62 c.setBorder("1px solid green");
63
64 return c;
65 }
66 }
67 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org