performed javacscript:fix and worked on documentation
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / section / supplemental / AnnotationSection.java
index 84e0bdc6974e7997a43cf92e111c4d0625e4cea2..4ff0fae4a64b85a57f3a2c2e219604a3b62c006b 100644 (file)
@@ -16,7 +16,8 @@ import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
- * 
+ * <p>AnnotationSection class.</p>
+ *
  * @author n.hoffmann
  * @created Nov 5, 2009
  * @version 1.0
@@ -24,13 +25,18 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 public class AnnotationSection extends AbstractEntityCollectionSection<AnnotatableEntity, Annotation>{
 
        /**
-        * @param parentElement
-        * @param style
+        * <p>Constructor for AnnotationSection.</p>
+        *
+        * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
+        * @param style a int.
+        * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
+        * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
         */
        public AnnotationSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, int style) {
                super(cdmFormFactory, conversation, parentElement, "Annotations", style);
        }
 
+       /** {@inheritDoc} */
        @Override
        public Annotation createNewElement() {
                String text = "";
@@ -40,26 +46,31 @@ public class AnnotationSection extends AbstractEntityCollectionSection<Annotatab
                return Annotation.NewInstance(text, type, language);
        }
 
+       /** {@inheritDoc} */
        @Override
        public Collection<Annotation> getCollection(AnnotatableEntity entity) {
                return entity.getAnnotations();
        }
 
+       /** {@inheritDoc} */
        @Override
        public String getEmptyString() {
                return "No annotations yet.";
        }
 
+       /** {@inheritDoc} */
        @Override
        protected String getTooltipString() {
                return "Create a new annotation";
        }
 
+       /** {@inheritDoc} */
        @Override
        public void addElement(Annotation element) {
                getEntity().addAnnotation(element);
        }
 
+       /** {@inheritDoc} */
        @Override
        public void removeElement(Annotation element) {
                getEntity().removeAnnotation(element);