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/TypeDesignationSection.java
29 29
import eu.etaxonomy.taxeditor.section.ITaxonDetailSection;
30 30

  
31 31
/**
32
 * <p>TypeDesignationSection class.</p>
33
 *
32 34
 * @author n.hoffmann
33 35
 * @created May 17, 2010
34 36
 * @version 1.0
......
38 40
	private static final Logger logger = Logger
39 41
			.getLogger(TypeDesignationSection.class);
40 42

  
43
	/**
44
	 * <p>Constructor for TypeDesignationSection.</p>
45
	 *
46
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
47
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
48
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
49
	 * @param style a int.
50
	 */
41 51
	public TypeDesignationSection(CdmFormFactory formFactory, ConversationHolder conversation,
42 52
			ICdmFormElement parentElement, int style) {
43 53
		super(formFactory, conversation, parentElement, "Type Designations", style);
......
45 55
	
46 56
	
47 57
	
58
	/** {@inheritDoc} */
48 59
	@Override
49 60
	public void addElement(TypeDesignationBase element) {
50 61
		getEntity().addTypeDesignation(element, false);
51 62
	}
52 63

  
64
	/** {@inheritDoc} */
53 65
	@Override
54 66
	public TypeDesignationBase createNewElement() {
55 67
		if(isSpecimenType()){
......
59 71
		}
60 72
	}
61 73

  
74
	/** {@inheritDoc} */
62 75
	@Override
63 76
	public Collection<TypeDesignationBase> getCollection(TaxonNameBase entity) {
64 77
		return entity.getTypeDesignations();
65 78
	}
66 79

  
80
	/** {@inheritDoc} */
67 81
	@Override
68 82
	public String getEmptyString() {
69 83
		return "No type designations yet.";
70 84
	}
71 85

  
86
	/** {@inheritDoc} */
72 87
	@Override
73 88
	protected String getTooltipString() {
74 89
		return "Add a type designation";
75 90
	}
76 91

  
92
	/** {@inheritDoc} */
77 93
	@Override
78 94
	public void removeElement(TypeDesignationBase element) {
79 95
		getEntity().removeTypeDesignation(element);
......
83 99
	 * (non-Javadoc)
84 100
	 * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
85 101
	 */
102
	/** {@inheritDoc} */
86 103
	public void setTaxon(TaxonBase taxon) {	
87 104
		NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(taxon.getName());
88 105
		setEntity(name);

Also available in: Unified diff