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/name/ProtologueSection.java
27 27
import eu.etaxonomy.taxeditor.section.ITaxonDetailSection;
28 28

  
29 29
/**
30
 * <p>ProtologueSection class.</p>
31
 *
30 32
 * @author n.hoffmann
31 33
 * @created Nov 5, 2009
32 34
 * @version 1.0
......
34 36
public class ProtologueSection extends AbstractEntityCollectionSection<TaxonNameBase, DescriptionElementBase> implements ITaxonDetailSection{
35 37
	
36 38
	/**
37
	 * 
38
	 * @param cdmFormFactory
39
	 * @param parentElement
40
	 * @param style
39
	 * <p>Constructor for ProtologueSection.</p>
40
	 *
41
	 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
42
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
43
	 * @param style a int.
44
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
41 45
	 */
42 46
	public ProtologueSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, int style) {
43 47
		super(cdmFormFactory, conversation, parentElement, "Protologues", style);
44 48
	}
45 49

  
50
	/** {@inheritDoc} */
46 51
	@Override
47 52
	public DescriptionElementBase createNewElement() {
48 53
		return TextData.NewInstance(Feature.PROTOLOGUE());
49 54
	}
50 55

  
51 56

  
57
	/** {@inheritDoc} */
52 58
	@Override
53 59
	public Collection<DescriptionElementBase> getCollection(
54 60
			TaxonNameBase entity) {
......
56 62
	}
57 63

  
58 64

  
65
	/** {@inheritDoc} */
59 66
	@Override
60 67
	public String getEmptyString() {
61 68
		return "No protologues yet.";
62 69
	}
63 70

  
64 71

  
72
	/** {@inheritDoc} */
65 73
	@Override
66 74
	protected String getTooltipString() {
67 75
		return "Create a new protologue";
68 76
	}
69 77

  
78
	/** {@inheritDoc} */
70 79
	@Override
71 80
	public void addElement(DescriptionElementBase element) {
72 81
		getTaxonNameDescription(getEntity()).addElement(element);
73 82
	}
74 83

  
84
	/** {@inheritDoc} */
75 85
	@Override
76 86
	public void removeElement(DescriptionElementBase element) {
77 87
		getTaxonNameDescription(getEntity()).removeElement(element);
78 88
	}
79 89

  
90
	/** {@inheritDoc} */
80 91
	public void setTaxon(TaxonBase taxon) {
81 92
		
82 93
		NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(taxon.getName());

Also available in: Unified diff