Revision 8407c42c
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/LabelElement.java | ||
---|---|---|
11 | 11 |
package eu.etaxonomy.taxeditor.ui.element; |
12 | 12 |
|
13 | 13 |
import org.eclipse.swt.SWT; |
14 |
import org.eclipse.swt.graphics.Color; |
|
15 |
import org.eclipse.swt.graphics.FontData; |
|
14 | 16 |
import org.eclipse.swt.widgets.Label; |
17 |
import org.eclipse.ui.forms.widgets.TableWrapData; |
|
15 | 18 |
|
16 | 19 |
import eu.etaxonomy.cdm.common.CdmUtils; |
17 | 20 |
|
... | ... | |
49 | 52 |
public void setText(String text) { |
50 | 53 |
label.setText(CdmUtils.Nz(text)); |
51 | 54 |
} |
55 |
|
|
56 |
public void setLayout(TableWrapData layoutConstants){ |
|
57 |
label.setLayoutData(layoutConstants); |
|
58 |
} |
|
59 |
|
|
60 |
public void setForeground(Color color){ |
|
61 |
label.setForeground(color); |
|
62 |
} |
|
52 | 63 |
} |
Also available in: Unified diff
ref #6159: fix that some column show no data