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
.section
.description
;
13 import java
.util
.Collection
;
15 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
18 import eu
.etaxonomy
.cdm
.model
.description
.QuantitativeData
;
19 import eu
.etaxonomy
.cdm
.model
.description
.StatisticalMeasurementValue
;
20 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
21 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
22 import eu
.etaxonomy
.taxeditor
.section
.AbstractEntityCollectionSection
;
25 * <p>StatisticalMeasurementValueSection class.</p>
28 * @created Sep 15, 2010
31 public class StatisticalMeasurementValueSection
extends
32 AbstractEntityCollectionSection
<QuantitativeData
, StatisticalMeasurementValue
> {
35 private static final Logger logger
= Logger
36 .getLogger(StatisticalMeasurementValueSection
.class);
39 * <p>Constructor for StatisticalMeasurementValueSection.</p>
41 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
42 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
43 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
46 public StatisticalMeasurementValueSection(CdmFormFactory formFactory
,
47 ConversationHolder conversation
, ICdmFormElement parentElement
,
49 super(formFactory
, conversation
, parentElement
, "Statistical Measurement Value", style
);
54 public Collection
<StatisticalMeasurementValue
> getCollection(
55 QuantitativeData entity
) {
56 return entity
.getStatisticalValues();
61 public StatisticalMeasurementValue
createNewElement() {
62 return StatisticalMeasurementValue
.NewInstance();
67 public void addElement(StatisticalMeasurementValue element
) {
68 getEntity().addStatisticalValue(element
);
73 public void removeElement(StatisticalMeasurementValue element
) {
74 getEntity().removeStatisticalValue(element
);
79 public String
getEmptyString() {
80 return "No statistical values yet.";
85 protected String
getTooltipString() {
86 return "Create new statistical value";