Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 80:a26489e55730
Added footer and a spacer to the webpage layout.
flys-client/trunk@1587 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 28 Mar 2011 11:59:00 +0000 |
parents | 44c63e7fd0d0 |
children | 0bec0112c8b3 |
comparison
equal
deleted
inserted
replaced
79:17815a7354bc | 80:a26489e55730 |
---|---|
5 import com.google.gwt.user.client.rpc.AsyncCallback; | 5 import com.google.gwt.user.client.rpc.AsyncCallback; |
6 import com.google.gwt.user.client.ui.RootPanel; | 6 import com.google.gwt.user.client.ui.RootPanel; |
7 import com.google.gwt.xml.client.XMLParser; | 7 import com.google.gwt.xml.client.XMLParser; |
8 | 8 |
9 import com.smartgwt.client.widgets.layout.VLayout; | 9 import com.smartgwt.client.widgets.layout.VLayout; |
10 import com.smartgwt.client.widgets.layout.HLayout; | |
10 | 11 |
11 import de.intevation.flys.client.shared.model.Artifact; | 12 import de.intevation.flys.client.shared.model.Artifact; |
12 import de.intevation.flys.client.shared.model.Collection; | 13 import de.intevation.flys.client.shared.model.Collection; |
13 import de.intevation.flys.client.shared.model.DefaultCollection; | 14 import de.intevation.flys.client.shared.model.DefaultCollection; |
14 import de.intevation.flys.client.shared.model.River; | 15 import de.intevation.flys.client.shared.model.River; |
24 import de.intevation.flys.client.client.ui.FLYSHeader; | 25 import de.intevation.flys.client.client.ui.FLYSHeader; |
25 import de.intevation.flys.client.client.ui.FLYSView; | 26 import de.intevation.flys.client.client.ui.FLYSView; |
26 import de.intevation.flys.client.client.ui.FLYSWorkspace; | 27 import de.intevation.flys.client.client.ui.FLYSWorkspace; |
27 import de.intevation.flys.client.client.ui.MainMenu; | 28 import de.intevation.flys.client.client.ui.MainMenu; |
28 import de.intevation.flys.client.client.ui.ProjectList; | 29 import de.intevation.flys.client.client.ui.ProjectList; |
30 import de.intevation.flys.client.client.ui.FLYSFooter; | |
29 | 31 |
30 | 32 |
31 /** | 33 /** |
32 * Entry point classes define <code>onModuleLoad()</code>. | 34 * Entry point classes define <code>onModuleLoad()</code>. |
33 * | 35 * |
55 protected ProjectList projectList; | 57 protected ProjectList projectList; |
56 | 58 |
57 /** The FLYSWorkspace.*/ | 59 /** The FLYSWorkspace.*/ |
58 protected FLYSWorkspace workspace; | 60 protected FLYSWorkspace workspace; |
59 | 61 |
62 /** The footer. */ | |
63 protected FLYSFooter footer; | |
64 | |
60 /** The user who is currently logged in.*/ | 65 /** The user who is currently logged in.*/ |
61 protected User currentUser; | 66 protected User currentUser; |
62 | 67 |
63 /** The list of rivers supported by the server.*/ | 68 /** The list of rivers supported by the server.*/ |
64 protected River[] rivers; | 69 protected River[] rivers; |
68 * This is the entry point method. | 73 * This is the entry point method. |
69 */ | 74 */ |
70 public void onModuleLoad() { | 75 public void onModuleLoad() { |
71 | 76 |
72 VLayout vertical = new VLayout(); | 77 VLayout vertical = new VLayout(); |
73 vertical.setMembersMargin(2); | |
74 vertical.setLayoutMargin(1); | 78 vertical.setLayoutMargin(1); |
75 vertical.setWidth100(); | 79 vertical.setWidth100(); |
76 vertical.setHeight100(); | 80 vertical.setHeight100(); |
77 | 81 |
82 HLayout spacerBar = new HLayout(); | |
83 spacerBar.setWidth("100%"); | |
84 spacerBar.setHeight("20px"); | |
85 spacerBar.setStyleName("bgBlueLight"); | |
86 | |
78 menu = new MainMenu(this); | 87 menu = new MainMenu(this); |
79 view = new FLYSView(); | 88 view = new FLYSView(); |
89 footer = new FLYSFooter(this); | |
80 | 90 |
81 vertical.addMember(new FLYSHeader()); | 91 vertical.addMember(new FLYSHeader()); |
82 vertical.addMember(menu); | 92 vertical.addMember(menu); |
93 vertical.addMember(spacerBar); | |
83 vertical.addMember(view); | 94 vertical.addMember(view); |
95 vertical.addMember(footer); | |
84 | 96 |
85 RootPanel.get("app").add(vertical); | 97 RootPanel.get("app").add(vertical); |
86 | 98 |
87 initConfiguration(); | 99 initConfiguration(); |
88 String serverUrl = Config.getInstance().getServerUrl(); | 100 String serverUrl = Config.getInstance().getServerUrl(); |