Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/section/supplemental/AnnotationElement.java | ||
---|---|---|
15 | 15 |
import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement; |
16 | 16 |
|
17 | 17 |
/** |
18 |
* @author nho
|
|
18 |
* <p>AnnotationElement class.</p>
|
|
19 | 19 |
* |
20 |
* @author nho |
|
21 |
* @version $Id: $ |
|
20 | 22 |
*/ |
21 | 23 |
public class AnnotationElement extends AbstractEntityCollectionElement<Annotation>{ |
22 | 24 |
|
... | ... | |
24 | 26 |
private AnnotationTypeComboElement combo_annotationType; |
25 | 27 |
|
26 | 28 |
/** |
27 |
* |
|
28 |
* @param formElement |
|
29 |
* @param annotation |
|
30 |
* @param propertyChangeListener |
|
31 |
* @param style |
|
29 |
* <p>Constructor for AnnotationElement.</p> |
|
30 |
* |
|
31 |
* @param formElement a {@link eu.etaxonomy.taxeditor.forms.AbstractFormSection} object. |
|
32 |
* @param annotation a {@link eu.etaxonomy.cdm.model.common.Annotation} object. |
|
33 |
* @param style a int. |
|
34 |
* @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object. |
|
35 |
* @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object. |
|
32 | 36 |
*/ |
33 | 37 |
public AnnotationElement(CdmFormFactory cdmFormFactory, AbstractFormSection formElement, Annotation annotation, SelectionListener removeListener, int style) { |
34 | 38 |
super(cdmFormFactory, formElement, annotation, removeListener, null, style); |
... | ... | |
37 | 41 |
/* (non-Javadoc) |
38 | 42 |
* @see eu.etaxonomy.taxeditor.forms.entitysections.AbstractEntitySetComposite#createControls(org.eclipse.swt.widgets.Composite) |
39 | 43 |
*/ |
44 |
/** {@inheritDoc} */ |
|
40 | 45 |
@Override |
41 | 46 |
public void createControls(ICdmFormElement element, int style) { |
42 | 47 |
combo_annotationType = (AnnotationTypeComboElement) formFactory.createTermComboElement(TermComboType.ANNOTATIONTYPE, this, "Annotation Type", null, style); |
... | ... | |
47 | 52 |
/* (non-Javadoc) |
48 | 53 |
* @see eu.etaxonomy.taxeditor.forms.entitysections.AbstractEntitySetComposite#setEntity(eu.etaxonomy.cdm.model.common.AnnotatableEntity) |
49 | 54 |
*/ |
55 |
/** {@inheritDoc} */ |
|
50 | 56 |
@Override |
51 | 57 |
public void setEntity(Annotation entity) { |
52 | 58 |
this.entity = entity; |
... | ... | |
58 | 64 |
* (non-Javadoc) |
59 | 65 |
* @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#handleEvent(java.lang.Object) |
60 | 66 |
*/ |
67 |
/** {@inheritDoc} */ |
|
61 | 68 |
@Override |
62 | 69 |
public void handleEvent(Object eventSource) { |
63 | 70 |
if(eventSource == combo_annotationType){ |
Also available in: Unified diff
performed javacscript:fix and worked on documentation