Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/section/supplemental/AbstractReferencedEntityElement.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.taxeditor.section.BulkEditorOpeningSelectionListener; |
26 | 26 |
|
27 | 27 |
/** |
28 |
* <p>Abstract AbstractReferencedEntityElement class.</p> |
|
29 |
* |
|
28 | 30 |
* @author n.hoffmann |
29 | 31 |
* @created Mar 25, 2010 |
30 | 32 |
* @version 1.0 |
... | ... | |
46 | 48 |
|
47 | 49 |
private boolean hasOriginalNameString = false; |
48 | 50 |
|
51 |
/** |
|
52 |
* <p>Constructor for AbstractReferencedEntityElement.</p> |
|
53 |
* |
|
54 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object. |
|
55 |
* @param section a {@link eu.etaxonomy.taxeditor.forms.AbstractFormSection} object. |
|
56 |
* @param entity a T object. |
|
57 |
* @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object. |
|
58 |
* @param style a int. |
|
59 |
* @param <T> a T object. |
|
60 |
*/ |
|
49 | 61 |
public AbstractReferencedEntityElement(CdmFormFactory formFactory, |
50 | 62 |
AbstractFormSection section, T entity, |
51 | 63 |
SelectionListener removeListener, |
... | ... | |
56 | 68 |
/* (non-Javadoc) |
57 | 69 |
* @see eu.etaxonomy.taxeditor.forms.section.AbstractEntityCollectionElement#createControls(eu.etaxonomy.taxeditor.forms.ICdmFormElement, int) |
58 | 70 |
*/ |
71 |
/** {@inheritDoc} */ |
|
59 | 72 |
@Override |
60 | 73 |
public void createControls(ICdmFormElement formElement, int style) { |
61 | 74 |
selection_reference = (ReferenceSelectionElement) formFactory.createSelectionElement(SelectionType.REFERENCE, getConversationHolder(), formElement, "Reference", null, style); |
... | ... | |
63 | 76 |
if(hasOriginalNameString) text_originaleNameString = formFactory.createTextWithLabelElement(formElement, "Original Name", null, SWT.NULL); |
64 | 77 |
} |
65 | 78 |
|
79 |
/** |
|
80 |
* <p>setEntity</p> |
|
81 |
* |
|
82 |
* @param entity a T object. |
|
83 |
*/ |
|
66 | 84 |
public void setEntity(T entity) { |
67 | 85 |
this.entity = entity; |
68 | 86 |
|
... | ... | |
88 | 106 |
// selection_reference.clearEditButtonSelectionListener(); |
89 | 107 |
// } |
90 | 108 |
|
109 |
/** |
|
110 |
* <p>Setter for the field <code>hasOriginalNameString</code>.</p> |
|
111 |
* |
|
112 |
* @param hasOriginalNameString a boolean. |
|
113 |
*/ |
|
91 | 114 |
public void setHasOriginalNameString(boolean hasOriginalNameString) { |
92 | 115 |
this.hasOriginalNameString = hasOriginalNameString; |
93 | 116 |
} |
94 | 117 |
|
118 |
/** |
|
119 |
* <p>hasOriginalNameString</p> |
|
120 |
* |
|
121 |
* @return a boolean. |
|
122 |
*/ |
|
95 | 123 |
public boolean hasOriginalNameString() { |
96 | 124 |
return hasOriginalNameString; |
97 | 125 |
} |
Also available in: Unified diff
performed javacscript:fix and worked on documentation