Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.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 | |
children | 95b30a5d6350 |
comparison
equal
deleted
inserted
replaced
5:14bf7895a2ec | 6:e2b3966b40ca |
---|---|
1 package de.intevation.flys.client.client.ui; | |
2 | |
3 import com.smartgwt.client.widgets.Canvas; | |
4 | |
5 import java.util.HashMap; | |
6 import java.util.Map; | |
7 | |
8 | |
9 /** | |
10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
11 */ | |
12 public class FLYSWorkspace extends Canvas { | |
13 | |
14 /** A map that contains the open CollectionViews. */ | |
15 protected Map<String, CollectionView> views; | |
16 | |
17 | |
18 /** | |
19 * The default constructor creates an empty FLYSWorkspace with no | |
20 * CollectionViews opened. | |
21 */ | |
22 public FLYSWorkspace() { | |
23 views = new HashMap<String, CollectionView>(); | |
24 } | |
25 | |
26 | |
27 /** | |
28 * This method adds a new CollectionView to this workspace and stores a | |
29 * reference in {@link views}. | |
30 * | |
31 * @param collectionView A new CollectionView. | |
32 */ | |
33 public void addView(String uuid, CollectionView collectionView) { | |
34 views.put(uuid, collectionView); | |
35 | |
36 addChild(collectionView); | |
37 } | |
38 } | |
39 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |