Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/section/occurrence/DeterminationEventDetailSection.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection; |
21 | 21 |
|
22 | 22 |
/** |
23 |
* <p>DeterminationEventDetailSection class.</p> |
|
24 |
* |
|
23 | 25 |
* @author n.hoffmann |
24 | 26 |
* @created Oct 13, 2010 |
25 | 27 |
* @version 1.0 |
... | ... | |
28 | 30 |
AbstractEntityCollectionSection<DerivedUnitFacade, DeterminationEvent> { |
29 | 31 |
|
30 | 32 |
/** |
31 |
* @param formFactory |
|
32 |
* @param conversation |
|
33 |
* @param parentElement |
|
34 |
* @param title |
|
35 |
* @param style |
|
33 |
* <p>Constructor for DeterminationEventDetailSection.</p> |
|
34 |
* |
|
35 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object. |
|
36 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
37 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object. |
|
38 |
* @param style a int. |
|
36 | 39 |
*/ |
37 | 40 |
public DeterminationEventDetailSection(CdmFormFactory formFactory, |
38 | 41 |
ConversationHolder conversation, ICdmFormElement parentElement, |
... | ... | |
43 | 46 |
/* (non-Javadoc) |
44 | 47 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getCollection(java.lang.Object) |
45 | 48 |
*/ |
49 |
/** {@inheritDoc} */ |
|
46 | 50 |
@Override |
47 | 51 |
public Collection<DeterminationEvent> getCollection(DerivedUnitFacade entity) { |
48 | 52 |
return entity.getDeterminations(); |
... | ... | |
51 | 55 |
/* (non-Javadoc) |
52 | 56 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#createNewElement() |
53 | 57 |
*/ |
58 |
/** {@inheritDoc} */ |
|
54 | 59 |
@Override |
55 | 60 |
public DeterminationEvent createNewElement() { |
56 | 61 |
DeterminationEvent instance = DeterminationEvent.NewInstance(); |
... | ... | |
61 | 66 |
/* (non-Javadoc) |
62 | 67 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#addElement(eu.etaxonomy.cdm.model.common.IVersionableEntity) |
63 | 68 |
*/ |
69 |
/** {@inheritDoc} */ |
|
64 | 70 |
@Override |
65 | 71 |
public void addElement(DeterminationEvent determination) { |
66 | 72 |
getEntity().addDetermination(determination); |
... | ... | |
69 | 75 |
/* (non-Javadoc) |
70 | 76 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#removeElement(eu.etaxonomy.cdm.model.common.IVersionableEntity) |
71 | 77 |
*/ |
78 |
/** {@inheritDoc} */ |
|
72 | 79 |
@Override |
73 | 80 |
public void removeElement(DeterminationEvent determination) { |
74 | 81 |
getEntity().removeDetermination(determination); |
... | ... | |
77 | 84 |
/* (non-Javadoc) |
78 | 85 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getEmptyString() |
79 | 86 |
*/ |
87 |
/** {@inheritDoc} */ |
|
80 | 88 |
@Override |
81 | 89 |
public String getEmptyString() { |
82 | 90 |
return "No determinations yet."; |
... | ... | |
85 | 93 |
/* (non-Javadoc) |
86 | 94 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getTooltipString() |
87 | 95 |
*/ |
96 |
/** {@inheritDoc} */ |
|
88 | 97 |
@Override |
89 | 98 |
protected String getTooltipString() { |
90 | 99 |
return "Add a determination event"; |
Also available in: Unified diff
performed javacscript:fix and worked on documentation