automated build configuration is on its way
[taxeditor.git] / taxeditor-printpublisher / src / main / java / eu / etaxonomy / taxeditor / printpublisher / wizard / AbstractPublishWizardPage.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.printpublisher.wizard;
12
13 import org.eclipse.jface.wizard.WizardPage;
14
15 import eu.etaxonomy.cdm.print.PublishConfigurator;
16 import eu.etaxonomy.cdm.print.out.IPublishOutputModule;
17
18 /**
19 * <p>Abstract AbstractPublishWizardPage class.</p>
20 *
21 * @author n.hoffmann
22 * @created Apr 27, 2010
23 * @version 1.0
24 */
25 public abstract class AbstractPublishWizardPage extends WizardPage {
26
27 /**
28 * <p>Constructor for AbstractPublishWizardPage.</p>
29 *
30 * @param pageName a {@link java.lang.String} object.
31 */
32 protected AbstractPublishWizardPage(String pageName) {
33 super(pageName);
34 }
35
36 /**
37 * <p>getConfigurator</p>
38 *
39 * @return a {@link eu.etaxonomy.cdm.print.PublishConfigurator} object.
40 */
41 public PublishConfigurator getConfigurator(){
42 return ((AbstractPublishWizard) getWizard()).getConfigurator();
43 }
44
45 /**
46 * <p>setConfigurator</p>
47 *
48 * @param configurator a {@link eu.etaxonomy.cdm.print.PublishConfigurator} object.
49 */
50 public void setConfigurator(PublishConfigurator configurator){
51 ((AbstractPublishWizard) getWizard()).setConfigurator(configurator);
52 }
53
54 /**
55 * <p>getOutputModule</p>
56 *
57 * @return a {@link eu.etaxonomy.cdm.print.out.IPublishOutputModule} object.
58 */
59 public IPublishOutputModule getOutputModule(){
60 IPublishOutputModule outputModule = ((AbstractPublishWizard) getWizard()).getOutputModule();
61 if(outputModule == null)
62 throw new IllegalStateException("OutputModule may not be null at this moment");
63 return outputModule;
64 }
65 }