Project

General

Profile

Download (1.42 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 java.util.Collection;
14

    
15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
17
import eu.etaxonomy.cdm.model.occurrence.DeterminationEvent;
18
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
19
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
20

    
21
/**
22
 * @author n.hoffmann
23
 * @created May 11, 2011
24
 * @version 1.0
25
 */
26
public class DeterminationHistoryDetailSection extends
27
		AbstractDeterminationEventDetailSection {
28

    
29
	/**
30
	 * @param formFactory
31
	 * @param conversation
32
	 * @param parentElement
33
	 * @param style
34
	 */
35
	public DeterminationHistoryDetailSection(CdmFormFactory formFactory,
36
			ConversationHolder conversation, ICdmFormElement parentElement,
37
			int style) {
38
		super(formFactory, conversation, parentElement, "Determination History", style);
39
	}
40

    
41
	/* (non-Javadoc)
42
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#getCollection(java.lang.Object)
43
	 */
44
	@Override
45
	public Collection<DeterminationEvent> getCollection(DerivedUnitFacade entity) {
46
		return entity != null ? entity.getOtherDeterminations() : null;
47
	}
48

    
49
}
(15-15/29)