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.ui.section.occurrence;
|
12
|
|
13
|
import org.eclipse.swt.SWT;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
16
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
17
|
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade;
|
18
|
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade.DetailType;
|
19
|
import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage;
|
20
|
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
|
21
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
22
|
|
23
|
/**
|
24
|
* @author n.hoffmann
|
25
|
* @created Dec 15, 2010
|
26
|
* @version 1.0
|
27
|
*/
|
28
|
public class GatheringEventWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitFacade> {
|
29
|
|
30
|
/**
|
31
|
* @param formFactory
|
32
|
* @param conversation
|
33
|
* @param entity
|
34
|
*/
|
35
|
public GatheringEventWizardPage(CdmFormFactoryFacade formFactory,
|
36
|
ConversationHolder conversation, DerivedUnitFacade entity) {
|
37
|
super(formFactory, conversation, entity);
|
38
|
setTitle("Gathering Event Details");
|
39
|
setPageComplete(true);
|
40
|
}
|
41
|
|
42
|
/* (non-Javadoc)
|
43
|
* @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
|
44
|
*/
|
45
|
@Override
|
46
|
protected void checkComplete() {
|
47
|
setPageComplete(true);
|
48
|
}
|
49
|
|
50
|
/* (non-Javadoc)
|
51
|
* @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
|
52
|
*/
|
53
|
@Override
|
54
|
public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
|
55
|
GatheringEventDetailElement detailElement = (GatheringEventDetailElement) formFactory.createCdmDetailElement(DetailType.GATHERING_EVENT, rootElement, SWT.NULL);
|
56
|
detailElement.setEntity(getEntity());
|
57
|
return detailElement;
|
58
|
}
|
59
|
|
60
|
}
|