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
.io
.wizard
.specimenSearch
;
12 import java
.util
.List
;
14 import org
.eclipse
.jface
.wizard
.WizardPage
;
15 import org
.eclipse
.swt
.widgets
.Composite
;
17 import eu
.etaxonomy
.cdm
.model
.occurrence
.SpecimenOrObservationBase
;
18 import eu
.etaxonomy
.taxeditor
.ui
.campanula
.specimenSearch
.SpecimenSearchController
;
25 public class SpecimenSearchWizardPage
extends WizardPage
{
27 private List
<SpecimenOrObservationBase
> results
;
32 protected SpecimenSearchWizardPage(String pageName
, List
<SpecimenOrObservationBase
> results
) {
34 this.results
= results
;
38 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
41 public void createControl(Composite parent
) {
42 setControl(new SpecimenSearchController(parent
).getComposite());
46 * @see org.eclipse.jface.dialogs.DialogPage#setVisible(boolean)
49 public void setVisible(boolean visible
) {
50 super.setVisible(visible
);
52 ((SpecimenSearchWizard
) getWizard()).getResults();