comparison flys-client/src/main/java/org/dive4elements/river/client/client/ui/OutputTab.java @ 5834:f507086aa94b

Repaired internal references.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 12:31:32 +0200
parents flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java@6a8f83c538e3
children 821a02bbfb4e
comparison
equal deleted inserted replaced
5833:a2bdc0f524e8 5834:f507086aa94b
1 package de.intevation.flys.client.client.ui;
2
3 import com.smartgwt.client.widgets.Label;
4 import com.smartgwt.client.widgets.tab.Tab;
5
6 import de.intevation.flys.client.shared.model.Artifact;
7 import de.intevation.flys.client.shared.model.Collection;
8 import de.intevation.flys.client.shared.model.OutputMode;
9
10
11 public class OutputTab extends Tab {
12
13 /** The OutputMode that should be displayed in this tab.*/
14 protected OutputMode mode;
15
16 /** The Collection that should be displayed in this tab.*/
17 protected Collection collection;
18
19 /** The CollectionView containing this tab. */
20 protected CollectionView collectionView;
21
22
23 /**
24 * The default constructor that creates a new Tab for displaying a specific
25 * OutputMode of a Collection.
26 *
27 * @param title The title of the tab.
28 * @param collection The collection that need to be displayed.
29 * @param outputmode The OutputMode that need to be displayed.
30 */
31 public OutputTab(
32 String title,
33 Collection collection,
34 CollectionView collectionView,
35 OutputMode mode
36 ) {
37 super(title);
38
39 this.collection = collection;
40 this.mode = mode;
41 this.collectionView = collectionView;
42
43 setPane(new Label("Implement concrete subclasses to vary the output."));
44 }
45
46
47 public CollectionView getCollectionView() {
48 return collectionView;
49 }
50
51
52 public String getOutputName() {
53 return mode.getName();
54 }
55
56
57 public Artifact getArtifact() {
58 return getCollectionView().getArtifact();
59 }
60
61
62 public Collection getCollection() {
63 return collection;
64 }
65
66
67 public OutputMode getMode() {
68 return mode;
69 }
70 }
71 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org