package eu.etaxonomy.taxeditor.ui.element;
+import org.eclipse.jface.resource.FontDescriptor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.forms.widgets.TableWrapData;
label.setLayoutData(layoutConstants);
}
+
+
public void setForeground(Color color){
label.setForeground(color);
}
public boolean isDisposed(){
return label.isDisposed();
}
+
+ public void setBold(){
+ FontDescriptor boldDescriptor = FontDescriptor.createFrom(label.getFont()).setStyle(SWT.BOLD);
+ Font boldFont = boldDescriptor.createFont(label.getDisplay());
+ label.setFont( boldFont );
+ }
}