Revision 36fdf767
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/mvc/element/TextWithLabelElementController.java | ||
---|---|---|
1 | 1 |
/** |
2 |
* |
|
3 |
*/ |
|
2 |
* Copyright (C) 2014 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
4 | 9 |
package eu.etaxonomy.taxeditor.ui.mvc.element; |
5 | 10 |
|
6 | 11 |
import org.eclipse.swt.SWT; |
... | ... | |
23 | 28 |
import eu.etaxonomy.taxeditor.ui.mvc.interfaces.CdmCompositeController; |
24 | 29 |
|
25 | 30 |
/** |
26 |
* <p> |
|
27 | 31 |
* TextWithLabelElement class. |
28 |
* </p> |
|
29 | 32 |
* |
30 | 33 |
* @author n.hoffmann |
31 | 34 |
*/ |
... | ... | |
42 | 45 |
public static final int SINGLE = -1; |
43 | 46 |
|
44 | 47 |
/** |
45 |
* <p> |
|
46 | 48 |
* Constructor for TextWithLabelElement. |
47 |
* </p> |
|
48 |
* |
|
49 |
* @param formFactory |
|
50 |
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} |
|
51 |
* object. |
|
52 |
* @param parentElement |
|
53 |
* a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} |
|
54 |
* object. |
|
55 |
* @param labelString |
|
56 |
* a {@link java.lang.String} object. |
|
57 |
* @param initialText |
|
58 |
* a {@link java.lang.String} object. |
|
59 |
* @param textHeight |
|
60 |
* a {@link java.lang.Integer} object. |
|
61 |
* @param style |
|
62 |
* a int. |
|
63 |
* @wbp.parser.entryPoint |
|
64 | 49 |
*/ |
65 | 50 |
public TextWithLabelElementController(TextWithLabelElementMVC textWithLabelElement, CdmFormFactory formFactory, ICdmFormElement parentElement, |
66 | 51 |
String initialText, Integer textHeight, int style) { |
... | ... | |
102 | 87 |
|
103 | 88 |
/** |
104 | 89 |
* Get the text of this composites text composite |
105 |
* |
|
106 |
* @return a {@link java.lang.String} object. |
|
107 | 90 |
*/ |
108 | 91 |
public String getText() { |
109 | 92 |
return text.getText(); |
... | ... | |
111 | 94 |
|
112 | 95 |
/** |
113 | 96 |
* Set the text of this composites text composite |
114 |
* |
|
115 |
* @param string |
|
116 |
* a {@link java.lang.String} object. |
|
117 | 97 |
*/ |
118 | 98 |
public void setText(String string) { |
119 | 99 |
StoreUtil.setTextWithoutModifyListeners(text, string); |
... | ... | |
162 | 142 |
} |
163 | 143 |
|
164 | 144 |
/** |
165 |
* <p> |
|
166 | 145 |
* getMainControl |
167 |
* </p> |
|
168 |
* |
|
169 |
* @return a {@link org.eclipse.swt.widgets.Control} object. |
|
170 | 146 |
*/ |
171 | 147 |
public Control getMainControl() { |
172 | 148 |
return text; |
173 | 149 |
} |
174 | 150 |
|
175 | 151 |
/** |
176 |
* <p> |
|
177 | 152 |
* setTextLimit |
178 |
* </p> |
|
179 |
* |
|
180 |
* @param limit |
|
181 |
* a int. |
|
182 | 153 |
*/ |
183 | 154 |
public void setTextLimit(int limit) { |
184 | 155 |
text.setTextLimit(limit); |
Also available in: Unified diff
cleanup