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/DescriptionElementSourceSection.java
14 14
import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection;
15 15

  
16 16
/**
17
 * 
17
 * <p>DescriptionElementSourceSection class.</p>
18
 *
18 19
 * @author n.hoffmann
19 20
 * @created Nov 17, 2009
20 21
 * @version 1.0
......
22 23
public class DescriptionElementSourceSection extends AbstractEntityCollectionSection<DescriptionElementBase, DescriptionElementSource>{
23 24

  
24 25
	/**
25
	 * 
26
	 * @param parentElement
27
	 * @param entity
28
	 * @param listener
29
	 * @param style
26
	 * <p>Constructor for DescriptionElementSourceSection.</p>
27
	 *
28
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
29
	 * @param style a int.
30
	 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
31
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
30 32
	 */
31 33
	public DescriptionElementSourceSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, int style){
32 34
		super(cdmFormFactory, conversation, parentElement, "References", style);
33 35
	}
34 36

  
37
	/** {@inheritDoc} */
35 38
	@Override
36 39
	public DescriptionElementSource createNewElement() {
37 40
		return DescriptionElementSource.NewInstance();
38 41
	}
39 42

  
43
	/** {@inheritDoc} */
40 44
	@Override
41 45
	public Collection<DescriptionElementSource> getCollection(
42 46
			DescriptionElementBase entity) {
43 47
		return entity.getSources();
44 48
	}
45 49

  
50
	/** {@inheritDoc} */
46 51
	@Override
47 52
	public String getEmptyString() {
48 53
		return "No references yet.";
49 54
	}
50 55

  
56
	/** {@inheritDoc} */
51 57
	@Override
52 58
	protected String getTooltipString() {
53 59
		return "Create a new reference";
54 60
	}
55 61

  
62
	/** {@inheritDoc} */
56 63
	@Override
57 64
	public void addElement(DescriptionElementSource element) {
58 65
		getEntity().addSource(element);
59 66
	}
60 67

  
68
	/** {@inheritDoc} */
61 69
	@Override
62 70
	public void removeElement(DescriptionElementSource element) {
63 71
		getEntity().removeSource(element);

Also available in: Unified diff