Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java @ 1364:9981ba2ee13a
Display the datacage button in the map toolbar.
flys-client/trunk@3063 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 24 Oct 2011 13:35:30 +0000 |
parents | cd286de8f2ad |
children | 96708d81eaf6 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java Mon Oct 24 10:53:39 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java Mon Oct 24 13:35:30 2011 +0000 @@ -3,6 +3,7 @@ import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.tab.Tab; +import de.intevation.flys.client.shared.model.Artifact; import de.intevation.flys.client.shared.model.Collection; import de.intevation.flys.client.shared.model.OutputMode; @@ -15,6 +16,9 @@ /** The Collection that should be displayed in this tab.*/ protected Collection collection; + /** The CollectionView. */ + protected CollectionView collectionView; + /** * The default constructor that creates a new Tab for displaying a specific @@ -24,18 +28,34 @@ * @param collection The collection that need to be displayed. * @param outputmode The OutputMode that need to be displayed. */ - public OutputTab(String title, Collection collection, OutputMode mode) { + public OutputTab( + String title, + Collection collection, + CollectionView collectionView, + OutputMode mode + ) { super(title); - this.collection = collection; - this.mode = mode; + this.collection = collection; + this.mode = mode; + this.collectionView = collectionView; setPane(new Label("Implement concrete subclasses to vary the output.")); } + public CollectionView getCollectionView() { + return collectionView; + } + + public String getOutputName() { return mode.getName(); } + + + public Artifact getArtifact() { + return getCollectionView().getArtifact(); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :