performed javacscript:fix and worked on documentation
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / section / description / DescribedSpecimenSection.java
index 52bb4a525e51fa8fdb310224847a8d5f8e443637..5617a19252e848165f48cd3ef0f7c3d0bd2bd4ff 100644 (file)
@@ -24,6 +24,8 @@ import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
 import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection;
 
 /**
+ * <p>DescribedSpecimenSection class.</p>
+ *
  * @author n.hoffmann
  * @created Sep 16, 2010
  * @version 1.0
@@ -34,38 +36,52 @@ public class DescribedSpecimenSection extends AbstractEntityCollectionSection<Ta
        private static final Logger logger = Logger
                        .getLogger(DescribedSpecimenSection.class);
 
+       /**
+        * <p>Constructor for DescribedSpecimenSection.</p>
+        *
+        * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
+        * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
+        * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
+        * @param style a int.
+        */
        public DescribedSpecimenSection(CdmFormFactory formFactory,
                        ConversationHolder conversation, ICdmFormElement parentElement,
                        int style) {
                super(formFactory, conversation, parentElement, "Described Specimen", style);
        }
        
+       /** {@inheritDoc} */
        @Override
        public Collection<SpecimenOrObservationBase> getCollection(
                        TaxonDescription entity) {
                return entity.getDescribedSpecimenOrObservations();
        }
 
+       /** {@inheritDoc} */
        @Override
        public SpecimenOrObservationBase createNewElement() {
                return DerivedUnit.NewInstance();
        }
 
+       /** {@inheritDoc} */
        @Override
        public void addElement(SpecimenOrObservationBase element) {
                getEntity().addDescribedSpecimenOrObservation(element);
        }
 
+       /** {@inheritDoc} */
        @Override
        public void removeElement(SpecimenOrObservationBase element) {
                getEntity().removeDescribedSpecimenOrObservation(element);
        }
 
+       /** {@inheritDoc} */
        @Override
        public String getEmptyString() {
                return "No described specimen yet.";
        }
 
+       /** {@inheritDoc} */
        @Override
        protected String getTooltipString() {
                return "Add a described specimen.";