Revision 515cd3ec
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TextWithLabelElement.java | ||
---|---|---|
9 | 9 |
import org.eclipse.swt.events.ModifyEvent; |
10 | 10 |
import org.eclipse.swt.events.ModifyListener; |
11 | 11 |
import org.eclipse.swt.graphics.Color; |
12 |
import org.eclipse.swt.layout.GridData; |
|
13 | 12 |
import org.eclipse.swt.widgets.Composite; |
14 | 13 |
import org.eclipse.swt.widgets.Control; |
15 | 14 |
import org.eclipse.swt.widgets.Label; |
... | ... | |
123 | 122 |
protected void initLabel(CdmFormFactory formFactory, String labelString, boolean isMultiLine, Composite layoutComposite) { |
124 | 123 |
if (labelString != null) { |
125 | 124 |
label = formFactory.createLabel(layoutComposite, CdmUtils.Nz(labelString), SWT.NULL); |
126 |
|
|
125 |
|
|
127 | 126 |
addControl(label); |
128 | 127 |
if(isMultiLine){ |
129 | 128 |
label.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
... | ... | |
237 | 236 |
text.setTextLimit(limit); |
238 | 237 |
} |
239 | 238 |
|
239 |
public void setVisible(boolean isVisible) { |
|
240 |
label.setVisible(isVisible); |
|
241 |
text.setVisible(isVisible); |
|
242 |
} |
|
243 |
|
|
240 | 244 |
} |
Also available in: Unified diff
ref #6554 Cache NameDetailElement (experimental)