Project

General

Profile

Download (1.72 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.taxeditor.ui.section.occurrence;
11

    
12
import java.util.Collection;
13

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

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

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

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

    
54
	/* (non-Javadoc)
55
	 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getTooltipString()
56
	 */
57
	/** {@inheritDoc} */
58
	@Override
59
	protected String getTooltipString() {
60
		return "Add a determination event to the history";
61
	}
62

    
63
}
(16-16/36)