3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
;
13 import java
.util
.Collection
;
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
;
23 * @created May 11, 2011
26 public class DeterminationHistoryDetailSection
extends
27 AbstractDeterminationEventDetailSection
{
32 * @param parentElement
35 public DeterminationHistoryDetailSection(CdmFormFactory formFactory
,
36 ConversationHolder conversation
, ICdmFormElement parentElement
,
38 super(formFactory
, conversation
, parentElement
, "Determination History", style
);
42 * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection#getCollection(java.lang.Object)
45 public Collection
<DeterminationEvent
> getCollection(DerivedUnitFacade entity
) {
46 return entity
!= null ? entity
.getOtherDeterminations() : null;
50 public void refresh() {
51 internalUpdateSection(false);
56 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getTooltipString()
60 protected String
getTooltipString() {
61 return "Add a determination event to the history";