3 * Copyright (C) 2013 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.dataimport
.wizard
;
12 import org
.eclipse
.jface
.wizard
.WizardPage
;
13 import org
.eclipse
.swt
.widgets
.Composite
;
15 import eu
.etaxonomy
.cdm
.ext
.biocase
.BioCaseQuery
;
16 import eu
.etaxonomy
.taxeditor
.ui
.campanula
.specimenSearch
.SpecimenSearchController
;
20 * Wizard page for entering search parameters
25 public class SpecimenSearchWizardPage
extends WizardPage
{
27 private SpecimenSearchController specimenSearchController
;
29 protected SpecimenSearchWizardPage(String pageName
) {
34 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
37 public void createControl(Composite parent
) {
38 specimenSearchController
= new SpecimenSearchController(parent
);
39 setControl(specimenSearchController
.getComposite());
43 * Returns a {@link BioCaseQuery} filled with the parameters defined in this wizard page
46 public BioCaseQuery
getQuery() {
47 BioCaseQuery query
= new BioCaseQuery();
48 query
.accessionNumber
= specimenSearchController
.getAccessionNumber();
49 query
.collector
= specimenSearchController
.getCollector();
50 query
.collectorsNumber
= specimenSearchController
.getCollectorNumber();
51 query
.country
= specimenSearchController
.getCountry();
52 // query.date = specimenSearchController.getDate();
53 query
.herbarium
= specimenSearchController
.getHerbarium();
54 query
.locality
= specimenSearchController
.getLocality();
55 query
.taxonName
= specimenSearchController
.getTaxonName();