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.section.occurrence;
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
15
|
|
16
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
17
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
18
|
import eu.etaxonomy.cdm.model.occurrence.GatheringEvent;
|
19
|
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
|
20
|
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
|
21
|
import eu.etaxonomy.taxeditor.forms.CdmFormFactory.DetailType;
|
22
|
import eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection;
|
23
|
|
24
|
/**
|
25
|
* <p>GatheringEventDetailSection class.</p>
|
26
|
*
|
27
|
* @author n.hoffmann
|
28
|
* @created Jun 24, 2010
|
29
|
* @version 1.0
|
30
|
*/
|
31
|
public class GatheringEventDetailSection extends AbstractCdmDetailSection<GatheringEvent> implements IFacadeHolder{
|
32
|
|
33
|
private static final Logger logger = Logger
|
34
|
.getLogger(GatheringEventDetailSection.class);
|
35
|
|
36
|
private DerivedUnitFacade facade;
|
37
|
|
38
|
/**
|
39
|
* <p>Constructor for GatheringEventDetailSection.</p>
|
40
|
*
|
41
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
|
42
|
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
43
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
|
44
|
* @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
|
45
|
* @param style a int.
|
46
|
*/
|
47
|
public GatheringEventDetailSection(CdmFormFactory formFactory,
|
48
|
ConversationHolder conversation, ICdmFormElement parentElement,
|
49
|
ISelectionProvider selectionProvider, int style) {
|
50
|
super(formFactory, conversation, parentElement, selectionProvider, style);
|
51
|
}
|
52
|
|
53
|
|
54
|
/* (non-Javadoc)
|
55
|
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
|
56
|
*/
|
57
|
/** {@inheritDoc} */
|
58
|
@Override
|
59
|
protected DetailType getDetailType() {
|
60
|
return DetailType.GATHERING_EVENT;
|
61
|
}
|
62
|
|
63
|
/* (non-Javadoc)
|
64
|
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
|
65
|
*/
|
66
|
/** {@inheritDoc} */
|
67
|
@Override
|
68
|
public String getHeading() {
|
69
|
return "Gathering Event";
|
70
|
}
|
71
|
|
72
|
|
73
|
/** {@inheritDoc} */
|
74
|
public void setFacade(DerivedUnitFacade facade) {
|
75
|
this.facade = facade;
|
76
|
((IFacadeHolder)detailElement).setFacade(facade);
|
77
|
}
|
78
|
|
79
|
|
80
|
/**
|
81
|
* <p>Getter for the field <code>facade</code>.</p>
|
82
|
*
|
83
|
* @return a {@link eu.etaxonomy.cdm.api.facade.DerivedUnitFacade} object.
|
84
|
*/
|
85
|
public DerivedUnitFacade getFacade() {
|
86
|
return facade;
|
87
|
}
|
88
|
}
|