comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 796:cd8603aaa730

Improved the process of creating OutputTabs. Added support for map output. flys-client/trunk@2312 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 08 Jul 2011 08:54:08 +0000
parents dfbc6693247e
children 653ae84533e7
comparison
equal deleted inserted replaced
795:68b8770af6c5 796:cd8603aaa730
40 import de.intevation.flys.client.client.services.AddArtifactServiceAsync; 40 import de.intevation.flys.client.client.services.AddArtifactServiceAsync;
41 import de.intevation.flys.client.client.services.CreateCollectionService; 41 import de.intevation.flys.client.client.services.CreateCollectionService;
42 import de.intevation.flys.client.client.services.CreateCollectionServiceAsync; 42 import de.intevation.flys.client.client.services.CreateCollectionServiceAsync;
43 import de.intevation.flys.client.client.services.DescribeCollectionService; 43 import de.intevation.flys.client.client.services.DescribeCollectionService;
44 import de.intevation.flys.client.client.services.DescribeCollectionServiceAsync; 44 import de.intevation.flys.client.client.services.DescribeCollectionServiceAsync;
45 import de.intevation.flys.client.client.ui.chart.ChartOutputTab;
46 45
47 46
48 /** 47 /**
49 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 48 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
50 */ 49 */
452 return; 451 return;
453 } 452 }
454 453
455 GWT.log("Add new output tab for '" + name + "'"); 454 GWT.log("Add new output tab for '" + name + "'");
456 455
457 // TODO Source this out to a factory that creates the different 456 String title = messages.getString(name);
458 // OutputTabs. 457 OutputTab tab = out.createOutputTab(title, getCollection(), this);
459 String title = messages.getString(name); 458
460 OutputTab tab = new ChartOutputTab( 459 if (tab != null) {
461 title, getCollection(), out, this); 460 outputTabs.put(name, tab);
462 outputTabs.put(name, tab); 461 }
463 } 462 }
464 463
465 464
466 /** 465 /**
467 * Removes all output mode tabs from tab bar. 466 * Removes all output mode tabs from tab bar.

http://dive4elements.wald.intevation.org