Project

General

Profile

« Previous | Next » 

Revision 3be6ef3e

Added by Niels Hoffmann over 13 years ago

performed javacscript:fix and worked on documentation

View differences:

taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/section/description/DescribedSpecimenSection.java
24 24
import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection;
25 25

  
26 26
/**
27
 * <p>DescribedSpecimenSection class.</p>
28
 *
27 29
 * @author n.hoffmann
28 30
 * @created Sep 16, 2010
29 31
 * @version 1.0
......
34 36
	private static final Logger logger = Logger
35 37
			.getLogger(DescribedSpecimenSection.class);
36 38

  
39
	/**
40
	 * <p>Constructor for DescribedSpecimenSection.</p>
41
	 *
42
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
43
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
44
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
45
	 * @param style a int.
46
	 */
37 47
	public DescribedSpecimenSection(CdmFormFactory formFactory,
38 48
			ConversationHolder conversation, ICdmFormElement parentElement,
39 49
			int style) {
40 50
		super(formFactory, conversation, parentElement, "Described Specimen", style);
41 51
	}
42 52
	
53
	/** {@inheritDoc} */
43 54
	@Override
44 55
	public Collection<SpecimenOrObservationBase> getCollection(
45 56
			TaxonDescription entity) {
46 57
		return entity.getDescribedSpecimenOrObservations();
47 58
	}
48 59

  
60
	/** {@inheritDoc} */
49 61
	@Override
50 62
	public SpecimenOrObservationBase createNewElement() {
51 63
		return DerivedUnit.NewInstance();
52 64
	}
53 65

  
66
	/** {@inheritDoc} */
54 67
	@Override
55 68
	public void addElement(SpecimenOrObservationBase element) {
56 69
		getEntity().addDescribedSpecimenOrObservation(element);
57 70
	}
58 71

  
72
	/** {@inheritDoc} */
59 73
	@Override
60 74
	public void removeElement(SpecimenOrObservationBase element) {
61 75
		getEntity().removeDescribedSpecimenOrObservation(element);
62 76
	}
63 77

  
78
	/** {@inheritDoc} */
64 79
	@Override
65 80
	public String getEmptyString() {
66 81
		return "No described specimen yet.";
67 82
	}
68 83

  
84
	/** {@inheritDoc} */
69 85
	@Override
70 86
	protected String getTooltipString() {
71 87
		return "Add a described specimen.";

Also available in: Unified diff