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.element.CdmFormFactory;
|
19
|
import eu.etaxonomy.taxeditor.ui.element.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
|
@Override
|
50
|
public void refresh() {
|
51
|
internalUpdateSection(false);
|
52
|
}
|
53
|
|
54
|
|
55
|
/* (non-Javadoc)
|
56
|
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getTooltipString()
|
57
|
*/
|
58
|
/** {@inheritDoc} */
|
59
|
@Override
|
60
|
protected String getTooltipString() {
|
61
|
return "Add a determination event to the history";
|
62
|
}
|
63
|
|
64
|
}
|