had to rename the packages to make them compliant with buckminster
[taxeditor.git] / eu.etaxonomy.taxeditor.printpublisher / src / main / java / eu / etaxonomy / taxeditor / printpublisher / wizard / DirectPublishingWizard.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 eu.etaxonomy.cdm.print.PublishConfigurator;
14
15 /**
16 * <p>DirectPublishingWizard class.</p>
17 *
18 * @author n.hoffmann
19 * @created Aug 6, 2010
20 * @version 1.0
21 */
22 public class DirectPublishingWizard extends AbstractPublishWizard {
23
24 /**
25 * <p>Constructor for DirectPublishingWizard.</p>
26 *
27 * @param configurator a {@link eu.etaxonomy.cdm.print.PublishConfigurator} object.
28 */
29 public DirectPublishingWizard(PublishConfigurator configurator) {
30 setConfigurator(configurator);
31 setOutputModule(configurator.getOutputModules().iterator().next());
32 }
33
34 /** {@inheritDoc} */
35 @Override
36 public void addPages() {
37 pageOptions = new OptionsWizardPage(PAGE_OPTIONS);
38 addPage(pageOptions);
39
40 pageFeatureTree = new SelectFeatureTreeWizardPage(PAGE_FEATURETREE);
41 addPage(pageFeatureTree);
42
43 pageFolder = new SelectFolderWizardPage(PAGE_FOLDER);
44 addPage(pageFolder);
45
46 pageOverview = new OverviewWizardPage(PAGE_OVERVIEW);
47 addPage(pageOverview);
48 }
49
50 /** {@inheritDoc} */
51 @Override
52 public boolean performFinish() {
53 return super.performFinish();
54 }
55
56 /**
57 * <p>canFinish</p>
58 *
59 * @return a boolean.
60 */
61 public boolean canFinish() {
62 return pageFeatureTree.isPageComplete()
63 && pageFolder.isPageComplete();
64 }
65 }