Revision 097d348b
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DeterminationEventDetailElement.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement; |
23 | 23 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
24 |
import eu.etaxonomy.taxeditor.ui.element.ISelectableElement; |
|
25 |
import eu.etaxonomy.taxeditor.ui.element.SelectionArbitrator; |
|
24 | 26 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
25 | 27 |
|
26 | 28 |
/** |
27 |
* <p> |
|
28 |
* DeterminationEventDetailElement class. |
|
29 |
* </p> |
|
30 |
* |
|
31 | 29 |
* @author n.hoffmann |
32 | 30 |
* @created Oct 13, 2010 |
33 | 31 |
*/ |
34 | 32 |
public class DeterminationEventDetailElement extends |
35 |
AbstractEventDetailElement<DeterminationEvent> { |
|
33 |
AbstractEventDetailElement<DeterminationEvent> implements ISelectableElement{ |
|
34 |
|
|
35 |
private SelectionArbitrator selectionArbitrator; |
|
36 | 36 |
|
37 | 37 |
private TermComboElement<DefinedTerm> combo_determinationModifier; |
38 | 38 |
private CheckboxElement checkbox_preferredFlag; |
... | ... | |
41 | 41 |
|
42 | 42 |
// private TODO a set of references |
43 | 43 |
|
44 |
/** |
|
45 |
* <p> |
|
46 |
* Constructor for DeterminationEventDetailElement. |
|
47 |
* </p> |
|
48 |
* |
|
49 |
* @param formFactory |
|
50 |
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} |
|
51 |
* object. |
|
52 |
* @param section |
|
53 |
* a {@link eu.etaxonomy.taxeditor.ui.element.AbstractFormSection} |
|
54 |
* object. |
|
55 |
* @param entity |
|
56 |
* a {@link eu.etaxonomy.cdm.model.occurrence.DeterminationEvent} |
|
57 |
* object. |
|
58 |
* @param removeListener |
|
59 |
* a {@link org.eclipse.swt.events.SelectionListener} object. |
|
60 |
* @param style |
|
61 |
* a int. |
|
62 |
*/ |
|
63 | 44 |
public DeterminationEventDetailElement(CdmFormFactory formFactory, |
64 | 45 |
AbstractFormSection<?> section, DeterminationEvent entity, |
65 | 46 |
SelectionListener removeListener, int style) { |
66 | 47 |
super(formFactory, section, entity, removeListener, style); |
48 |
if (formFactory.getSelectionProvider() != null) { |
|
49 |
selectionArbitrator = formFactory.createSelectionArbitrator(this); |
|
50 |
} |
|
67 | 51 |
} |
68 | 52 |
|
69 | 53 |
/** {@inheritDoc} */ |
... | ... | |
140 | 124 |
} |
141 | 125 |
} |
142 | 126 |
|
127 |
@Override |
|
128 |
public SelectionArbitrator getSelectionArbitrator() { |
|
129 |
return selectionArbitrator; |
|
130 |
} |
|
131 |
|
|
143 | 132 |
} |
Also available in: Unified diff
fix #2406 Allow editing supplemental data for determination event