Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 4:89976499e013
Implemented a ProjectList and added a mockup that displays two collections in that list.
flys-client/trunk@1312 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 10 Feb 2011 14:52:49 +0000 |
parents | bc5d4d2297b9 |
children | e2b3966b40ca |
comparison
equal
deleted
inserted
replaced
3:9cf5a40b62c7 | 4:89976499e013 |
---|---|
11 | 11 |
12 import de.intevation.flys.client.client.services.UserService; | 12 import de.intevation.flys.client.client.services.UserService; |
13 import de.intevation.flys.client.client.services.UserServiceAsync; | 13 import de.intevation.flys.client.client.services.UserServiceAsync; |
14 import de.intevation.flys.client.client.ui.FLYSView; | 14 import de.intevation.flys.client.client.ui.FLYSView; |
15 import de.intevation.flys.client.client.ui.MainMenu; | 15 import de.intevation.flys.client.client.ui.MainMenu; |
16 import de.intevation.flys.client.client.ui.ProjectList; | |
16 | 17 |
17 | 18 |
18 /** | 19 /** |
19 * Entry point classes define <code>onModuleLoad()</code>. | 20 * Entry point classes define <code>onModuleLoad()</code>. |
20 * | 21 * |
23 public class FLYS implements EntryPoint { | 24 public class FLYS implements EntryPoint { |
24 | 25 |
25 /** The UserService used to retrieve information about the current user. */ | 26 /** The UserService used to retrieve information about the current user. */ |
26 protected UserServiceAsync userService = GWT.create(UserService.class); | 27 protected UserServiceAsync userService = GWT.create(UserService.class); |
27 | 28 |
29 /** The menu bar at the top of the application.*/ | |
28 protected MainMenu menu; | 30 protected MainMenu menu; |
31 | |
32 /** The content window. It takes the whole space beneath the menu bar.*/ | |
29 protected FLYSView view; | 33 protected FLYSView view; |
34 | |
35 /** The project list that displays the projects of the user.*/ | |
36 protected ProjectList projectList; | |
30 | 37 |
31 | 38 |
32 /** | 39 /** |
33 * This is the entry point method. | 40 * This is the entry point method. |
34 */ | 41 */ |
55 } | 62 } |
56 | 63 |
57 public void onSuccess(User user) { | 64 public void onSuccess(User user) { |
58 GWT.log("Found a user. Set '"+ user.getLastName()+"'"); | 65 GWT.log("Found a user. Set '"+ user.getLastName()+"'"); |
59 menu.setCurrentUser(user); | 66 menu.setCurrentUser(user); |
67 | |
68 projectList = new ProjectList(user); | |
69 view.setProjectList(projectList); | |
60 } | 70 } |
61 }); | 71 }); |
62 } | 72 } |
63 } | 73 } |
64 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 74 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |