- added BioCaseQuery to the API
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / wizard / specimenSearch / SpecimenSearchWizardPage.java
1 // $Id$
2 /**
3 * Copyright (C) 2013 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 package eu.etaxonomy.taxeditor.io.wizard.specimenSearch;
11
12 import java.util.List;
13
14 import org.eclipse.jface.wizard.WizardPage;
15 import org.eclipse.swt.widgets.Composite;
16
17 import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
18 import eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchController;
19
20 /**
21 * @author pplitzner
22 * @date 12.09.2013
23 *
24 */
25 public class SpecimenSearchWizardPage extends WizardPage{
26
27 private List<SpecimenOrObservationBase> results;
28
29 /**
30 * @param pageName
31 */
32 protected SpecimenSearchWizardPage(String pageName, List<SpecimenOrObservationBase> results) {
33 super(pageName);
34 this.results = results;
35 }
36
37 /* (non-Javadoc)
38 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
39 */
40 @Override
41 public void createControl(Composite parent) {
42 setControl(new SpecimenSearchController(parent).getComposite());
43 }
44
45 /* (non-Javadoc)
46 * @see org.eclipse.jface.dialogs.DialogPage#setVisible(boolean)
47 */
48 @Override
49 public void setVisible(boolean visible) {
50 super.setVisible(visible);
51 if(visible==false){
52 ((SpecimenSearchWizard) getWizard()).getResults();
53 }
54 }
55 }