Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamMemberElement.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
19 | 19 |
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent; |
20 | 20 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
21 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.SelectionType; |
|
22 | 21 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
23 |
import eu.etaxonomy.taxeditor.ui.selection.PersonSelectionElement;
|
|
22 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
|
|
24 | 23 |
|
25 | 24 |
/** |
26 | 25 |
* <p> |
... | ... | |
33 | 32 |
*/ |
34 | 33 |
public class TeamMemberElement extends AbstractEntityCollectionElement<Person> { |
35 | 34 |
|
36 |
private PersonSelectionElement selection_person;
|
|
35 |
private EntitySelectionElement<Person> selection_person;
|
|
37 | 36 |
|
38 | 37 |
/** |
39 | 38 |
* <p> |
... | ... | |
69 | 68 |
/** {@inheritDoc} */ |
70 | 69 |
@Override |
71 | 70 |
public void createControls(ICdmFormElement element, int style) { |
72 |
selection_person = (PersonSelectionElement) formFactory
|
|
73 |
.createSelectionElement(SelectionType.PERSON,
|
|
71 |
selection_person = formFactory |
|
72 |
.createSelectionElement(Person.class,
|
|
74 | 73 |
getConversationHolder(), this, "Person", null, |
75 |
PersonSelectionElement.DEFAULT, style); |
|
74 |
EntitySelectionElement.EDITABLE | EntitySelectionElement.SELECTABLE, |
|
75 |
style); |
|
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
/* |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)