setBackground(colors, percents, false);
label.setBackground(bgColor);
setBackground(colors, percents, false);
setBackground(colors, percents, false);
setBackground( colors, percents, false );
setBackground(colors, percents, false);
setBackground(colors, percents, false);
public void setBackground(Color bg) { if (messageHyperlink != null) messageHyperlink.setBackground(bg); if (messageLabel != null) messageLabel.setBackground(bg); }
public void setBackground(Color bg) { if (messageHyperlink != null) messageHyperlink.setBackground(bg); if (messageLabel != null) messageLabel.setBackground(bg); }
public CLabel createCLabel(Composite parent, String text, int style) { final CLabel label = new CLabel(parent, style); label.setBackground(parent.getBackground()); label.setText(text); return label; }
/** * Creates a label as a part of the form. * * @param parent * the label parent. * @param text * the label text. * @param style * the label style. * @return the label. */ public CLabel createCLabel(Composite parent, String text, int style) { final CLabel label = new CLabel(parent, style); label.setBackground(parent.getBackground()); label.setText(text); return label; }
void handleSetSelection ( final boolean selected ) { if ( selected ) { this.item.setBackground ( this.item.getDisplay ().getSystemColor ( SWT.COLOR_LIST_SELECTION ) ); this.item.setForeground ( this.item.getDisplay ().getSystemColor ( SWT.COLOR_LIST_SELECTION_TEXT ) ); this.item.setCursor ( null ); } else { this.item.setBackground ( (Color)null ); this.item.setForeground ( null ); this.item.setCursor ( this.item.getDisplay ().getSystemCursor ( SWT.CURSOR_HAND ) ); } } }
fMessageLabel.setBackground(bg); fMessageLabel.setForeground(fg); fMessageLabel.setText(" ");//$NON-NLS-1$
if (fMessageLabel.getImage() != null) { fMessageLabel.setBackground(fNormalMsgAreaBackground); fMessageLabel.setImage(null); fTitleImage.setImage(TeamUIPlugin.getPlugin().getImageRegistry().get(PREF_DLG_TITLE_IMG)); fMessageLabel.setBackground(JFaceColors.getErrorBackground(fMessageLabel.getDisplay())); fMessageLabel.setImage(fErrorMsgImage); fTitleImage.setImage(null);
if (fMessageLabel.getImage() != null) { fMessageLabel.setBackground(fNormalMsgAreaBackground); fMessageLabel.setImage(null); fTitleImage.setImage(TeamUIPlugin.getPlugin().getImageRegistry().get(PREF_DLG_TITLE_IMG)); fMessageLabel.setBackground(JFaceColors.getErrorBackground(fMessageLabel.getDisplay())); fMessageLabel.setImage(fErrorMsgImage); fTitleImage.setImage(null);
/** * @param e */ protected void drawTitleBackground(PaintEvent e) { Rectangle bounds = getClientArea(); label.setBackground(new Color[] { factory.getColors().getColor(IFormColors.H_GRADIENT_END), factory.getColors().getColor(IFormColors.H_GRADIENT_START) }, new int[] { 100 }, true); Color bg = factory.getColors().getColor(IFormColors.H_GRADIENT_END); Color gbg = factory.getColors().getColor(IFormColors.H_GRADIENT_START); GC gc = e.gc; gc.setForeground(bg); gc.setBackground(gbg); gc.fillGradientRectangle(bounds.x, bounds.y, bounds.width, bounds.height, true); // background bottom separator gc.setForeground(factory.getColors().getColor( IFormColors.H_BOTTOM_KEYLINE1)); gc.drawLine(bounds.x, bounds.height - 2, bounds.x + bounds.width - 1, bounds.height - 2); gc.setForeground(factory.getColors().getColor( IFormColors.H_BOTTOM_KEYLINE2)); gc.drawLine(bounds.x, bounds.height - 1, bounds.x + bounds.width - 1, bounds.height - 1); }
if (messageLabel == null) { messageLabel = new CLabel(FormHeading.this, SWT.NULL); messageLabel.setBackground(getBackground()); messageLabel.setText(message); if (messageToolTipManager != null)
if (messageLabel == null) { messageLabel = new CLabel(FormHeading.this, SWT.NULL); messageLabel.setBackground(getBackground()); messageLabel.setText(message); if (messageToolTipManager != null)
label.setBackground(new Color[] { factory.getColors().getColor(IFormColors.TB_BG), factory.getColors().getColor(IFormColors.TB_BG)}, new int[] {100},