Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 5487:a87fe0d2c928
CollectionView: removed and use functionality that was moved to LockScreen.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 28 Mar 2013 09:25:38 +0100 |
parents | 7c59baa150bd |
children | adb6c0f14810 |
comparison
equal
deleted
inserted
replaced
5486:b19f0fd301fc | 5487:a87fe0d2c928 |
---|---|
37 import de.intevation.flys.client.client.services.CreateCollectionServiceAsync; | 37 import de.intevation.flys.client.client.services.CreateCollectionServiceAsync; |
38 import de.intevation.flys.client.client.services.DescribeCollectionService; | 38 import de.intevation.flys.client.client.services.DescribeCollectionService; |
39 import de.intevation.flys.client.client.services.DescribeCollectionServiceAsync; | 39 import de.intevation.flys.client.client.services.DescribeCollectionServiceAsync; |
40 import de.intevation.flys.client.client.services.LoadArtifactService; | 40 import de.intevation.flys.client.client.services.LoadArtifactService; |
41 import de.intevation.flys.client.client.services.LoadArtifactServiceAsync; | 41 import de.intevation.flys.client.client.services.LoadArtifactServiceAsync; |
42 import de.intevation.flys.client.client.ui.ScreenLock; | |
42 import de.intevation.flys.client.shared.model.Artifact; | 43 import de.intevation.flys.client.shared.model.Artifact; |
43 import de.intevation.flys.client.shared.model.ArtifactDescription; | 44 import de.intevation.flys.client.shared.model.ArtifactDescription; |
44 import de.intevation.flys.client.shared.model.Collection; | 45 import de.intevation.flys.client.shared.model.Collection; |
45 import de.intevation.flys.client.shared.model.ExportMode; | 46 import de.intevation.flys.client.shared.model.ExportMode; |
46 import de.intevation.flys.client.shared.model.OutputMode; | 47 import de.intevation.flys.client.shared.model.OutputMode; |
115 protected Map<String, OutputTab> outputTabs; | 116 protected Map<String, OutputTab> outputTabs; |
116 | 117 |
117 /** The layout. */ | 118 /** The layout. */ |
118 protected Layout layout; | 119 protected Layout layout; |
119 | 120 |
121 /** Layout to show spinning wheel of joy. */ | |
120 protected VLayout lockScreen; | 122 protected VLayout lockScreen; |
121 | 123 |
122 protected int artifactsQueue; | 124 protected int artifactsQueue; |
123 protected int recommendationQueue; | 125 protected int recommendationQueue; |
124 protected Stack<Recommendation> newRecommendations; | 126 protected Stack<Recommendation> newRecommendations; |
294 } | 296 } |
295 | 297 |
296 | 298 |
297 /** Disables input, grey out, show spinning wheel of joy. */ | 299 /** Disables input, grey out, show spinning wheel of joy. */ |
298 public void lockUI() { | 300 public void lockUI() { |
299 if (lockScreen == null) { | 301 lockScreen = ScreenLock.lockUI(layout, lockScreen); |
300 lockScreen = new VLayout(); | |
301 lockScreen.setWidth100(); | |
302 lockScreen.setHeight100(); | |
303 lockScreen.setBackgroundColor("#7f7f7f"); | |
304 lockScreen.setOpacity(50); | |
305 lockScreen.setAlign(VerticalAlignment.CENTER); | |
306 lockScreen.setDefaultLayoutAlign(VerticalAlignment.CENTER); | |
307 | |
308 HLayout inner = new HLayout(); | |
309 inner.setAlign(Alignment.CENTER); | |
310 inner.setDefaultLayoutAlign(Alignment.CENTER); | |
311 inner.setOpacity(100); | |
312 | |
313 Img img = new Img( | |
314 GWT.getHostPageBaseURL() + messages.loadingImg(), | |
315 25, 25); | |
316 | |
317 inner.addMember(img); | |
318 | |
319 lockScreen.addMember(inner); | |
320 } | |
321 | |
322 layout.addChild(lockScreen); | |
323 } | 302 } |
324 | 303 |
325 | 304 |
326 /** Enable input, remove grey, remove spinning wheel of joy. */ | 305 /** Enable input, remove grey, remove spinning wheel of joy. */ |
327 public void unlockUI() { | 306 public void unlockUI() { |
328 layout.removeChild(lockScreen); | 307 ScreenLock.unlockUI(layout, lockScreen); |
329 } | 308 } |
330 | 309 |
331 | 310 |
332 /** | 311 /** |
333 * This method returns true, if the Collection is new and no plugins has | 312 * This method returns true, if the Collection is new and no plugins has |