Revision 713fff1d
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/CollectingAreaDetailElement.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; |
11 | 10 |
|
12 | 11 |
import org.eclipse.swt.events.SelectionListener; |
... | ... | |
19 | 18 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
20 | 19 |
|
21 | 20 |
/** |
22 |
* <p> |
|
23 |
* CollectingAreasDetailElement class. |
|
24 |
* </p> |
|
25 |
* |
|
26 | 21 |
* @author n.hoffmann |
27 | 22 |
* @created Oct 14, 2010 |
28 |
* @version 1.0 |
|
29 | 23 |
*/ |
30 | 24 |
public class CollectingAreaDetailElement extends |
31 | 25 |
AbstractEntityCollectionElement<NamedArea> { |
... | ... | |
56 | 50 |
super(formFactory, section, entity, removeListener, null, style); |
57 | 51 |
} |
58 | 52 |
|
59 |
/* |
|
60 |
* (non-Javadoc) |
|
61 |
* |
|
62 |
* @see |
|
63 |
* eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#setEntity |
|
64 |
* (java.lang.Object) |
|
65 |
*/ |
|
66 |
/** {@inheritDoc} */ |
|
67 | 53 |
@Override |
68 | 54 |
public void setEntity(NamedArea entity) { |
69 | 55 |
selection_namedArea.setEntity(entity); |
70 | 56 |
} |
71 | 57 |
|
72 |
/* |
|
73 |
* (non-Javadoc) |
|
74 |
* |
|
75 |
* @see |
|
76 |
* eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#createControls |
|
77 |
* (eu.etaxonomy.taxeditor.forms.ICdmFormElement, int) |
|
78 |
*/ |
|
79 |
/** {@inheritDoc} */ |
|
80 | 58 |
@Override |
81 | 59 |
public void createControls(ICdmFormElement formElement, int style) { |
82 | 60 |
selection_namedArea = formFactory.createSelectionElement(NamedArea.class, //getConversationHolder(), |
... | ... | |
84 | 62 |
null, EntitySelectionElement.NOTHING, style); |
85 | 63 |
} |
86 | 64 |
|
87 |
/* |
|
88 |
* (non-Javadoc) |
|
89 |
* |
|
90 |
* @see |
|
91 |
* eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#handleEvent |
|
92 |
* (java.lang.Object) |
|
93 |
*/ |
|
94 |
/** {@inheritDoc} */ |
|
95 | 65 |
@Override |
96 | 66 |
public void handleEvent(Object eventSource) { |
97 | 67 |
if (eventSource == selection_namedArea) { |
98 | 68 |
setEntity(selection_namedArea.getSelection()); |
99 | 69 |
} |
100 | 70 |
} |
101 |
|
|
102 | 71 |
} |
Also available in: Unified diff
cleanup