Revision e5488fb6
Added by Lutz Suhrbier over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/TextActionElement.java | ||
---|---|---|
14 | 14 |
import org.eclipse.swt.widgets.Text; |
15 | 15 |
|
16 | 16 |
import eu.etaxonomy.cdm.common.CdmUtils; |
17 |
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade; |
|
17 | 18 |
|
18 | 19 |
/** |
19 | 20 |
* <p>TextActionElement class.</p> |
... | ... | |
32 | 33 |
* <p>Constructor for TextActionElement.</p> |
33 | 34 |
* |
34 | 35 |
* @param style a int. |
35 |
* @param toolkit a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
|
|
36 |
* @param toolkit a {@link eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade} object.
|
|
36 | 37 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object. |
37 | 38 |
* @param labelString a {@link java.lang.String} object. |
38 | 39 |
* @param buttonLabel a {@link java.lang.String} object. |
39 | 40 |
* @param initialText a {@link java.lang.String} object. |
40 | 41 |
*/ |
41 |
protected TextActionElement(CdmFormFactory toolkit, ICdmFormElement parentElement, String labelString, String buttonLabel, String initialText, int style) {
|
|
42 |
public TextActionElement(CdmFormFactoryFacade toolkit, ICdmFormElement parentElement, String labelString, String buttonLabel, String initialText, int style) {
|
|
42 | 43 |
super(toolkit, parentElement); |
43 | 44 |
|
44 | 45 |
label = toolkit.createLabel(getLayoutComposite(), labelString, SWT.WRAP); |
45 | 46 |
addControl(label); |
46 | 47 |
|
47 | 48 |
box = formFactory.createComposite(getLayoutComposite()); |
48 |
box.setLayout(CdmFormFactory.LAYOUT(2, false)); |
|
49 |
box.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY()); |
|
49 |
box.setLayout(CdmFormFactoryFacade.LAYOUT(2, false));
|
|
50 |
box.setLayoutData(CdmFormFactoryFacade.FILL_HORIZONTALLY());
|
|
50 | 51 |
addControl(box); |
51 | 52 |
|
52 | 53 |
text = toolkit.createText(box, "", style); |
53 | 54 |
addControl(text); |
54 |
text.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY()); |
|
55 |
text.setLayoutData(CdmFormFactoryFacade.FILL_HORIZONTALLY());
|
|
55 | 56 |
|
56 | 57 |
setText(CdmUtils.Nz(initialText)); |
57 | 58 |
|
Also available in: Unified diff
Single Sourced CdmFormFactory markFinished Problem