Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java @ 74:c5586446f3c0
Available output modes are displayed in the tab bar of the collection view.
flys-client/trunk@1577 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 28 Mar 2011 07:09:34 +0000 |
parents | |
children | 571843833129 |
comparison
equal
deleted
inserted
replaced
73:39210a74db07 | 74:c5586446f3c0 |
---|---|
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.Collection; | |
7 import de.intevation.flys.client.shared.model.OutputMode; | |
8 | |
9 | |
10 public class OutputTab extends Tab { | |
11 | |
12 /** The OutputMode that should be displayed in this tab.*/ | |
13 protected OutputMode mode; | |
14 | |
15 /** The Collection that should be displayed in this tab.*/ | |
16 protected Collection collection; | |
17 | |
18 | |
19 /** | |
20 * The default constructor that creates a new Tab for displaying a specific | |
21 * OutputMode of a Collection. | |
22 * | |
23 * @param title The title of the tab. | |
24 * @param collection The collection that need to be displayed. | |
25 * @param outputmode The OutputMode that need to be displayed. | |
26 */ | |
27 public OutputTab(String title, Collection collecton, OutputMode mode) { | |
28 super(title); | |
29 | |
30 this.collection = collection; | |
31 this.mode = mode; | |
32 | |
33 init(); | |
34 } | |
35 | |
36 | |
37 /** | |
38 * Method that is called at the end of a constructor to initialize the view | |
39 * of this widget. | |
40 */ | |
41 protected void init() { | |
42 setPane(new Label("Implement concrete subclasses to vary the output.")); | |
43 } | |
44 } | |
45 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |