ingo@74: package de.intevation.flys.client.client.ui; ingo@74: ingo@74: import com.smartgwt.client.widgets.Label; ingo@74: import com.smartgwt.client.widgets.tab.Tab; ingo@74: ingo@74: import de.intevation.flys.client.shared.model.Collection; ingo@74: import de.intevation.flys.client.shared.model.OutputMode; ingo@74: ingo@74: ingo@74: public class OutputTab extends Tab { ingo@74: ingo@74: /** The OutputMode that should be displayed in this tab.*/ ingo@74: protected OutputMode mode; ingo@74: ingo@74: /** The Collection that should be displayed in this tab.*/ ingo@74: protected Collection collection; ingo@74: ingo@74: ingo@74: /** ingo@74: * The default constructor that creates a new Tab for displaying a specific ingo@74: * OutputMode of a Collection. ingo@74: * ingo@74: * @param title The title of the tab. ingo@74: * @param collection The collection that need to be displayed. ingo@74: * @param outputmode The OutputMode that need to be displayed. ingo@74: */ ingo@74: public OutputTab(String title, Collection collecton, OutputMode mode) { ingo@74: super(title); ingo@74: ingo@74: this.collection = collection; ingo@74: this.mode = mode; ingo@74: ingo@74: init(); ingo@74: } ingo@74: ingo@74: ingo@74: /** ingo@74: * Method that is called at the end of a constructor to initialize the view ingo@74: * of this widget. ingo@74: */ ingo@74: protected void init() { ingo@74: setPane(new Label("Implement concrete subclasses to vary the output.")); ingo@74: } ingo@74: } ingo@74: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :