protected void optionsSectionLayout( Class<?> PKG, String prefix ) { gDetails = new Group( shell, SWT.SHADOW_ETCHED_IN ); gDetails.setText( BaseMessages.getString( PKG, prefix + ".DetailsGroup.Label" ) ); props.setLook( gDetails ); // The layout gDetails.setLayout( new FormLayout() ); fdDetails = new FormData(); fdDetails.top = new FormAttachment( cRunConfiguration, 15 ); fdDetails.right = new FormAttachment( 100, -15 ); fdDetails.left = new FormAttachment( 0, 15 ); gDetails.setBackground( shell.getBackground() ); // the default looks ugly gDetails.setLayoutData( fdDetails ); optionsSectionControls(); }
fdTechGroup.bottom = new FormAttachment( wReplace, -margin ); fdTechGroup.right = new FormAttachment( 100, 0 ); gTechGroup.setBackground( shell.getBackground() ); // the default looks ugly gTechGroup.setLayoutData( fdTechGroup );
fdTechGroup.top = new FormAttachment( wTkRename, 2 * margin ); fdTechGroup.right = new FormAttachment( 100, 0 ); gTechGroup.setBackground( shell.getBackground() ); // the default looks ugly gTechGroup.setLayoutData( fdTechGroup );
/** * Sets the background color of the "Example" widgets' parent. */ void setExampleGroupBackgroundColor () { if (backgroundModeGroup == null) return; exampleGroup.setBackground (backgroundModeColorButton.getSelection () ? display.getSystemColor(SWT.COLOR_BLUE) : null); } /**
@Override protected Control createDialogArea(Composite parent) { Composite container = new Composite(parent, SWT.NONE); container.setLayout(new GridLayout()); container.setLayoutData(new GridData(GridData.FILL_BOTH)); container.setFont(parent.getFont()); Composite composite = new Composite(container, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 0; composite.setLayout(layout); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); composite.setBackground(container.getBackground()); createAndOrButtons(composite); configComposite = new Group(composite, SWT.NONE); configComposite.setText(MarkerMessages.MarkerConfigurationsLabel); configComposite.setLayout(new GridLayout(3, false)); GridData configData = new GridData(GridData.FILL_BOTH); configData.horizontalIndent = 20; configComposite.setLayoutData(configData); configComposite.setBackground(composite.getBackground()); createConfigs(configComposite); createConfigDesc(configComposite); createMarkerLimits(composite); Label separator = new Label(parent, SWT.HORIZONTAL | SWT.SEPARATOR); separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); applyDialogFont(container); initUI(); return container; }
public Group createGroup(Composite parent, String text) { Group group = new Group(parent, SWT.SHADOW_NONE); group.setText(text); group.setBackground(getColors().getBackground()); group.setForeground(getColors().getForeground()); return group; }
/** * Creates a group as a part of the form. * * @param parent * the group parent. * @param text * the group title. * @return the composite. */ public Group createGroup(Composite parent, String text) { Group group = new Group(parent, SWT.SHADOW_NONE); group.setText(text); group.setBackground(getColors().getBackground()); group.setForeground(getColors().getForeground()); return group; }