button.setBackground( perfComposite.getBackground() ); button.setFont( GUIResource.getInstance().getFontMedium() );
disable.setBackground( display.getSystemColor( SWT.COLOR_INFO_BACKGROUND ) ); disable.setSelection( false ); FormData fdDisable = new FormData();
/** * Setting the layout of an <i>Edit</i> option button. Either a button image is set - if existing - or a text. * * @param button * The button */ private FormData layoutEditOptionButton( Button button ) { FormData fd = new FormData(); Image editButton = GUIResource.getInstance().getEditOptionButton(); if ( editButton != null ) { button.setImage( editButton ); button.setBackground( GUIResource.getInstance().getColorWhite() ); fd.width = editButton.getBounds().width + 20; fd.height = editButton.getBounds().height; } else { button.setText( BaseMessages.getString( PKG, "EnterOptionsDialog.Button.Edit" ) ); } button.setToolTipText( BaseMessages.getString( PKG, "EnterOptionsDialog.Button.Edit.Tooltip" ) ); return fd; }
/** * Setting the layout of a <i>Reset</i> option button. Either a button image is set - if existing - or a text. * * @param button * The button */ private FormData layoutResetOptionButton( Button button ) { FormData fd = new FormData(); Image editButton = GUIResource.getInstance().getResetOptionButton(); if ( editButton != null ) { button.setImage( editButton ); button.setBackground( GUIResource.getInstance().getColorWhite() ); fd.width = editButton.getBounds().width + 20; fd.height = editButton.getBounds().height; } else { button.setText( BaseMessages.getString( PKG, "EnterOptionsDialog.Button.Reset" ) ); } button.setToolTipText( BaseMessages.getString( PKG, "EnterOptionsDialog.Button.Reset.Tooltip" ) ); return fd; }
private Button createButton(Composite parent, String text) { Button button = new Button(parent, SWT.FLAT); button.setBackground(fBackgroundColor); button.setForeground(fForegroundColor); if (text != null) button.setText(text); return button; }
private Button createButton(Composite parent, String text) { Button button = new Button(parent, SWT.FLAT); button.setBackground(fBackgroundColor); button.setForeground(fForegroundColor); if (text != null) button.setText(text); return button; }
private Button createButton(Composite parent, String text) { Button button = new Button(parent, SWT.FLAT); button.setBackground(fBackgroundColor); button.setForeground(fForegroundColor); if (text != null) button.setText(text); return button; }
private static void createButton(Composite parent, Color bgColor, boolean checked, boolean enabled) { Button button = new Button(parent, SWT.CHECK); button.setSelection(checked); button.setEnabled(enabled); button.setBackground(bgColor); Point bSize = button.computeSize(SWT.DEFAULT, SWT.DEFAULT); button.setSize(bSize); }
@Override public void handleEvent(Event event){ if(encryptToggle.getSelection()){ Messages.setLanguageText(encryptToggle,"SpeedTestWizard.test.panel.encrypted"); originalColor = encryptToggle.getForeground(); //Color highlightColor = ColorCache.getColor(display,178,78,127); Color highlightColor = Colors.getSystemColor(display, SWT.COLOR_DARK_YELLOW); encryptToggle.setBackground(highlightColor); }else{ Messages.setLanguageText(encryptToggle,"SpeedTestWizard.test.panel.standard"); if(originalColor!=null){ encryptToggle.setBackground(originalColor); } } }//handleEvent }
@Override public void setBackground(Color backgroundColor) { super.setBackground(backgroundColor); dateText.setBackground(backgroundColor); if ((getStyle() & SWT.FLAT) != 0) { pickButton.setBackground(backgroundColor); clearControl.setBackground(backgroundColor); } else { pickButton.setBackground(null); clearControl.setBackground(null); } }
public void setBackground (Color color) { super.setBackground(color); background = color; if (text != null) text.setBackground(color); if (list != null) list.setBackground(color); if (arrow != null) arrow.setBackground(color); } /**
@Override public void setBackground (Color color) { super.setBackground(color); background = color; if (text != null) text.setBackground(color); if (list != null) list.setBackground(color); if (arrow != null) arrow.setBackground(color); } /**
@Override public void setBackground (Color color) { super.setBackground(color); background = color; if (text != null) text.setBackground(color); if (list != null) list.setBackground(color); if (arrow != null) arrow.setBackground(color); } /**
@Override public void setBackground (Color color) { super.setBackground(color); background = color; if (text != null) text.setBackground(color); if (list != null) list.setBackground(color); if (arrow != null) arrow.setBackground(color); } /**
@Override public void setBackground (Color color) { super.setBackground(color); background = color; if (text != null) text.setBackground(color); if (list != null) list.setBackground(color); if (arrow != null) arrow.setBackground(color); } /**
@Override protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); new Label(composite, SWT.WRAP).setText(""); //$NON-NLS-1$ String sAddToFlowPrompt = Messages .getString("MultiResourceSelectionDialogWithFlowOption.addSelectedAEsToEndOfFlow"); //$NON-NLS-1$ FormToolkit factory = new FormToolkit(TAEConfiguratorPlugin.getDefault().getFormColors( parent.getDisplay())); autoAddToFlowButton = factory.createButton(composite, sAddToFlowPrompt, SWT.CHECK); m_bAutoAddToFlow = "false".equals(CDEpropertyPage.getAddToFlow(editor.getProject())) ? false : true; autoAddToFlowButton.setSelection(m_bAutoAddToFlow); autoAddToFlowButton.setBackground(null); return composite; }
button.setBackground(sectionClient.getBackground()); button.addSelectionListener(new SelectionAdapter() {
seqDL.setBackground( Colors.white );
grid_data.horizontalIndent = 16; ftux_check.setLayoutData(grid_data); ftux_check.setBackground( ftux_light_bg );
shell.setBackground(greenScreen); Button button = new Button(shell, SWT.CHECK); button.setBackground(greenScreen); button.setSelection(type); Point buttonSize = button.computeSize(SWT.DEFAULT, SWT.DEFAULT);