Revision 2ac060fb
Added by Patrick Plitzner over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/AbstractSourcedEntityBaseElement.java | ||
---|---|---|
26 | 26 |
|
27 | 27 |
private SelectionArbitrator selectionArbitrator; |
28 | 28 |
|
29 |
// protected SourceSection sources; |
|
30 |
|
|
31 |
|
|
32 |
/** |
|
33 |
* @param formFactory |
|
34 |
* @param section |
|
35 |
* @param entity |
|
36 |
* @param removeListener |
|
37 |
* @param backgroundColor |
|
38 |
* @param style |
|
39 |
*/ |
|
40 | 29 |
public AbstractSourcedEntityBaseElement(CdmFormFactory formFactory, AbstractFormSection section, T entity, |
41 | 30 |
SelectionListener removeListener, int style) { |
42 | 31 |
super(formFactory, section, entity, removeListener, null, style); |
... | ... | |
44 | 33 |
if(formFactory.getSelectionProvider() != null){ |
45 | 34 |
selectionArbitrator = formFactory.createSelectionArbitrator(this); |
46 | 35 |
} |
47 |
|
|
48 | 36 |
} |
49 | 37 |
|
50 |
/** |
|
51 |
* {@inheritDoc} |
|
52 |
*/ |
|
53 | 38 |
@Override |
54 | 39 |
public SelectionArbitrator getSelectionArbitrator() { |
55 | 40 |
return selectionArbitrator; |
56 | 41 |
} |
57 | 42 |
|
58 |
/** |
|
59 |
* {@inheritDoc} |
|
60 |
*/ |
|
61 | 43 |
@Override |
62 | 44 |
public void setEntity(T entity) { |
63 | 45 |
this.entity = entity; |
64 | 46 |
} |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 | 47 |
} |
Also available in: Unified diff
ref #8334 code cleanup