Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/OutputTab.java Mon Mar 28 07:09:34 2011 +0000 @@ -0,0 +1,45 @@ +package de.intevation.flys.client.client.ui; + +import com.smartgwt.client.widgets.Label; +import com.smartgwt.client.widgets.tab.Tab; + +import de.intevation.flys.client.shared.model.Collection; +import de.intevation.flys.client.shared.model.OutputMode; + + +public class OutputTab extends Tab { + + /** The OutputMode that should be displayed in this tab.*/ + protected OutputMode mode; + + /** The Collection that should be displayed in this tab.*/ + protected Collection collection; + + + /** + * The default constructor that creates a new Tab for displaying a specific + * OutputMode of a Collection. + * + * @param title The title of the tab. + * @param collection The collection that need to be displayed. + * @param outputmode The OutputMode that need to be displayed. + */ + public OutputTab(String title, Collection collecton, OutputMode mode) { + super(title); + + this.collection = collection; + this.mode = mode; + + init(); + } + + + /** + * Method that is called at the end of a constructor to initialize the view + * of this widget. + */ + protected void init() { + setPane(new Label("Implement concrete subclasses to vary the output.")); + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :