Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Thu Feb 10 14:45:14 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java Thu Feb 10 14:52:49 2011 +0000 @@ -13,6 +13,7 @@ import de.intevation.flys.client.client.services.UserServiceAsync; import de.intevation.flys.client.client.ui.FLYSView; import de.intevation.flys.client.client.ui.MainMenu; +import de.intevation.flys.client.client.ui.ProjectList; /** @@ -25,9 +26,15 @@ /** The UserService used to retrieve information about the current user. */ protected UserServiceAsync userService = GWT.create(UserService.class); + /** The menu bar at the top of the application.*/ protected MainMenu menu; + + /** The content window. It takes the whole space beneath the menu bar.*/ protected FLYSView view; + /** The project list that displays the projects of the user.*/ + protected ProjectList projectList; + /** * This is the entry point method. @@ -57,6 +64,9 @@ public void onSuccess(User user) { GWT.log("Found a user. Set '"+ user.getLastName()+"'"); menu.setCurrentUser(user); + + projectList = new ProjectList(user); + view.setProjectList(projectList); } }); }