Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/group/MemberDetailElement.java | ||
---|---|---|
16 | 16 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.SelectionType; |
|
20 | 19 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
21 |
import eu.etaxonomy.taxeditor.ui.selection.UserSelectionElement;
|
|
20 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
|
|
22 | 21 |
|
23 | 22 |
/** |
24 | 23 |
* @author n.hoffmann |
... | ... | |
27 | 26 |
*/ |
28 | 27 |
public class MemberDetailElement extends AbstractEntityCollectionElement<User> { |
29 | 28 |
|
30 |
private UserSelectionElement selection_user;
|
|
29 |
private EntitySelectionElement<User> selection_user;
|
|
31 | 30 |
|
32 | 31 |
/** |
33 | 32 |
* @param formFactory |
... | ... | |
63 | 62 |
*/ |
64 | 63 |
@Override |
65 | 64 |
public void createControls(ICdmFormElement element, int style) { |
66 |
selection_user = (UserSelectionElement) formFactory
|
|
67 |
.createSelectionElement(SelectionType.USER,
|
|
65 |
selection_user = formFactory |
|
66 |
.createSelectionElement(User.class,
|
|
68 | 67 |
getConversationHolder(), element, "Member", entity, |
69 |
UserSelectionElement.EDITABLE, style);
|
|
68 |
EntitySelectionElement.EDITABLE, style);
|
|
70 | 69 |
} |
71 | 70 |
|
72 | 71 |
/* |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)