3 * Copyright (C) 2007 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.
11 package eu
.etaxonomy
.taxeditor
.section
.occurrence
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
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
;
25 * <p>GatheringEventDetailSection class.</p>
28 * @created Jun 24, 2010
31 public class GatheringEventDetailSection
extends AbstractCdmDetailSection
<GatheringEvent
> implements IFacadeHolder
{
33 private static final Logger logger
= Logger
34 .getLogger(GatheringEventDetailSection
.class);
36 private DerivedUnitFacade facade
;
39 * <p>Constructor for GatheringEventDetailSection.</p>
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.
47 public GatheringEventDetailSection(CdmFormFactory formFactory
,
48 ConversationHolder conversation
, ICdmFormElement parentElement
,
49 ISelectionProvider selectionProvider
, int style
) {
50 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
55 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
59 protected DetailType
getDetailType() {
60 return DetailType
.GATHERING_EVENT
;
64 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
68 public String
getHeading() {
69 return "Gathering Event";
74 public void setFacade(DerivedUnitFacade facade
) {
76 ((IFacadeHolder
)detailElement
).setFacade(facade
);
81 * <p>Getter for the field <code>facade</code>.</p>
83 * @return a {@link eu.etaxonomy.cdm.api.facade.DerivedUnitFacade} object.
85 public DerivedUnitFacade
getFacade() {