Project

General

Profile

Download (2.58 KB) Statistics
| Branch: | Tag: | Revision:
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.jface.viewers.ISelectionProvider;
14

    
15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
17
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
19
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
20
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
21
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
22

    
23
/**
24
 * <p>GatheringEventDetailSection class.</p>
25
 *
26
 * @author n.hoffmann
27
 * @created Jun 24, 2010
28
 * @version 1.0
29
 */
30
public class GatheringEventDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection{
31

    
32
	/**
33
	 * <p>Constructor for GatheringEventDetailSection.</p>
34
	 *
35
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
36
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
37
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
38
	 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
39
	 * @param style a int.
40
	 */
41
	public GatheringEventDetailSection(CdmFormFactory formFactory,
42
			ConversationHolder conversation, ICdmFormElement parentElement,
43
			ISelectionProvider selectionProvider, int style) {
44
		super(formFactory, conversation, parentElement, selectionProvider, style);
45
	}
46

    
47

    
48
	/* (non-Javadoc)
49
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
50
	 */
51
	/** {@inheritDoc} */
52
	@Override
53
	protected DetailType getDetailType() {
54
		return DetailType.GATHERING_EVENT;
55
	}
56

    
57
	/* (non-Javadoc)
58
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
59
	 */
60
	/** {@inheritDoc} */
61
	@Override
62
	public String getHeading() {
63
		return "Gathering Event Details";
64
	}
65

    
66
	/* (non-Javadoc)
67
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
68
	 */
69
	@Override
70
	protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) {
71
	    return formFactory.createGatheringEventDetailElement(parentElement);
72
	}
73
}
(20-20/29)