Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSView.java @ 6:e2b3966b40ca
Added a workspace that handles the collection windows. New button to open a new collection.
flys-client/trunk@1314 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 11 Feb 2011 09:51:32 +0000 |
parents | 89976499e013 |
children | 17815a7354bc |
comparison
equal
deleted
inserted
replaced
5:14bf7895a2ec | 6:e2b3966b40ca |
---|---|
9 */ | 9 */ |
10 public class FLYSView extends Canvas { | 10 public class FLYSView extends Canvas { |
11 | 11 |
12 /** The project list displaying the projects of a user.*/ | 12 /** The project list displaying the projects of a user.*/ |
13 protected ProjectList projectList; | 13 protected ProjectList projectList; |
14 | |
15 /** The workspace that handles the artifact collection views.*/ | |
16 protected FLYSWorkspace workspace; | |
14 | 17 |
15 /** The layout provided by this widget.*/ | 18 /** The layout provided by this widget.*/ |
16 protected HLayout layout; | 19 protected HLayout layout; |
17 | 20 |
18 | 21 |
51 } | 54 } |
52 | 55 |
53 this.projectList = projectList; | 56 this.projectList = projectList; |
54 layout.addMember(this.projectList); | 57 layout.addMember(this.projectList); |
55 } | 58 } |
59 | |
60 | |
61 /** | |
62 * Set the current FLYSWorkspace. Previous workspaces are replaced by the | |
63 * new one. | |
64 * | |
65 * @param workspaces The new FLYSWorkspace. | |
66 */ | |
67 public void setFLYSWorkspace(FLYSWorkspace workspace) { | |
68 if (this.workspace != null) { | |
69 removeChild(this.workspace); | |
70 } | |
71 | |
72 this.workspace = workspace; | |
73 layout.addMember(this.workspace); | |
74 } | |
56 } | 75 } |
57 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 76 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |