Revision 8180822f
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/derivedUnit/PreservedSpecimenAbstractDeterminationEventDetailSection.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.ui.section.occurrence.derivedUnit; |
11 | 10 |
|
12 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
|
13 | 11 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
14 | 12 |
import eu.etaxonomy.cdm.model.occurrence.DeterminationEvent; |
15 | 13 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
17 | 15 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection; |
18 | 16 |
|
19 | 17 |
/** |
20 |
* <p>DeterminationEventDetailSection class.</p> |
|
21 |
* |
|
22 | 18 |
* @author n.hoffmann |
23 | 19 |
* @created Oct 13, 2010 |
24 |
* @version 1.0 |
|
25 | 20 |
*/ |
26 | 21 |
public abstract class PreservedSpecimenAbstractDeterminationEventDetailSection extends |
27 | 22 |
AbstractEntityCollectionSection<DerivedUnit, DeterminationEvent> { |
28 | 23 |
|
29 |
/** |
|
30 |
* @param formFactory |
|
31 |
* @param conversation |
|
32 |
* @param parentElement |
|
33 |
* @param title |
|
34 |
* @param style |
|
35 |
*/ |
|
36 | 24 |
public PreservedSpecimenAbstractDeterminationEventDetailSection(CdmFormFactory formFactory, |
37 |
ConversationHolder conversation, ICdmFormElement parentElement,
|
|
25 |
ICdmFormElement parentElement, |
|
38 | 26 |
String title, int style) { |
39 |
super(formFactory, conversation, parentElement, title, style);
|
|
27 |
super(formFactory, parentElement, title, style); |
|
40 | 28 |
} |
41 | 29 |
|
42 |
/* (non-Javadoc) |
|
43 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#createNewElement() |
|
44 |
*/ |
|
45 |
/** {@inheritDoc} */ |
|
46 | 30 |
@Override |
47 | 31 |
public DeterminationEvent createNewElement() { |
48 | 32 |
DeterminationEvent instance = DeterminationEvent.NewInstance(); |
... | ... | |
50 | 34 |
return instance; |
51 | 35 |
} |
52 | 36 |
|
53 |
/* (non-Javadoc) |
|
54 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#addElement(eu.etaxonomy.cdm.model.common.IVersionableEntity) |
|
55 |
*/ |
|
56 |
/** {@inheritDoc} */ |
|
57 | 37 |
@Override |
58 | 38 |
public void addElement(DeterminationEvent determination) { |
59 | 39 |
getEntity().addDetermination(determination); |
60 | 40 |
} |
61 | 41 |
|
62 |
/* (non-Javadoc) |
|
63 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#removeElement(eu.etaxonomy.cdm.model.common.IVersionableEntity) |
|
64 |
*/ |
|
65 |
/** {@inheritDoc} */ |
|
66 | 42 |
@Override |
67 | 43 |
public void removeElement(DeterminationEvent determination) { |
68 | 44 |
getEntity().removeDetermination(determination); |
69 | 45 |
} |
70 | 46 |
|
71 |
/* (non-Javadoc) |
|
72 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getEmptyString() |
|
73 |
*/ |
|
74 |
/** {@inheritDoc} */ |
|
75 | 47 |
@Override |
76 | 48 |
public String getEmptyString() { |
77 | 49 |
return "No determinations yet."; |
78 | 50 |
} |
79 |
|
|
80 |
} |
|
51 |
} |
Also available in: Unified diff
ref #10186 remove ConversationHolder from many forms and some more cleanup