2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
;
12 import java
.util
.Collection
;
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
;
22 * @created May 11, 2011
25 public class DeterminationHistoryDetailSection
extends
26 AbstractDeterminationEventDetailSection
{
31 * @param parentElement
34 public DeterminationHistoryDetailSection(CdmFormFactory formFactory
,
35 ConversationHolder conversation
, ICdmFormElement parentElement
,
37 super(formFactory
, conversation
, parentElement
, "Determination History", style
);
41 * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#getCollection(java.lang.Object)
44 public Collection
<DeterminationEvent
> getCollection(DerivedUnitFacade entity
) {
45 return entity
!= null ? entity
.getOtherDeterminations() : null;
49 public void refresh() {
50 internalUpdateSection(false);
55 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getTooltipString()
59 protected String
getTooltipString() {
60 return "Add a determination event to the history";