comparison flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 97:0bec0112c8b3

Integrated the ProjectList into the client. Now, the Collections of a user are displayed in the list. flys-client/trunk@1610 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 29 Mar 2011 13:53:24 +0000
parents a26489e55730
children 95b30a5d6350
comparison
equal deleted inserted replaced
96:261a2ee7d9bb 97:0bec0112c8b3
190 */ 190 */
191 public void newProject() { 191 public void newProject() {
192 // TODO Call the REST service to create a new Collection 192 // TODO Call the REST service to create a new Collection
193 // TODO Use the UUID of the Collection to add a new CollectionView! 193 // TODO Use the UUID of the Collection to add a new CollectionView!
194 Collection c = new DefaultCollection(new java.util.Date().toString()); 194 Collection c = new DefaultCollection(new java.util.Date().toString());
195 workspace.addView(c.identifier(), new CollectionView(this, c)); 195
196 CollectionView view = new CollectionView(this, c);
197 view.addCollectionChangeHandler(getProjectList());
198
199 workspace.addView(c.identifier(), view);
196 } 200 }
197 201
198 202
199 /** 203 /**
200 * Create a new Artifact. 204 * Create a new Artifact.

http://dive4elements.wald.intevation.org