org.eclipse.swt.widgets.Group Java Examples
The following examples show how to use
org.eclipse.swt.widgets.Group.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UsersWizardPage.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
protected void setDefaultUserInformationGroup(final Group defaultGroup) { defaultGroup.setText(Messages.defaultInformationGroupTitle); defaultGroup.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create()); defaultGroup.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); final Composite globalComposite = new Composite(defaultGroup, SWT.FILL); globalComposite.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).margins(5, 5).create()); globalComposite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); final Composite tablesComposite = new Composite(globalComposite, SWT.FILL); tablesComposite.setLayout(GridLayoutFactory.fillDefaults().numColumns(3).equalWidth(true).create()); tablesComposite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); createGeneralDataTable(tablesComposite); createBusinessCardTable(tablesComposite); createPersonalDataTable(tablesComposite); final Composite membershipsComposite = new Composite(globalComposite, SWT.NONE); membershipsComposite.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create()); membershipsComposite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); createMembershipsTable(membershipsComposite); }
Example #2
Source File: SWTStrategyDescriptionPanel.java From atdl4j with MIT License | 6 votes |
public Composite buildStrategyDescriptionPanel(Composite aParentComposite, Atdl4jOptions atdl4jOptions) { setAtdl4jOptions( atdl4jOptions ); composite = new SWTVisibleGroup(aParentComposite, SWT.NONE); ((Group) composite).setText("Strategy Description"); composite.setLayout(new GridLayout(1, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); strategyDescription = new Text(composite, SWT.WRAP | SWT.BORDER | SWT.V_SCROLL ); strategyDescription.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND)); strategyDescription.setForeground(composite.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND)); GridData descData = new GridData(SWT.FILL, SWT.FILL, true, false); descData.heightHint = DEFAULT_STRATEGY_DESCRIPTION_HEIGHT_HINT; strategyDescription.setLayoutData(descData); return composite; }
Example #3
Source File: UpdaterDialog.java From developer-studio with Apache License 2.0 | 6 votes |
private void createFeatureListTab(TabFolder tabFolder, ActiveTab type) { TabItem tabItem = new TabItem(tabFolder, SWT.NULL); if (type == ActiveTab.ALL_FEATURES) { tabItem.setText(ALL_FEATURES_TAB_TITLE); } else { tabItem.setText(UPDATES_TAB_TITLE); } ScrolledComposite scroll = new ScrolledComposite(tabFolder, SWT.V_SCROLL | SWT.H_SCROLL); scroll.setLayout(new GridLayout()); scroll.setLayoutData(new GridData()); Group group = new Group(scroll, SWT.NONE); group.setLayout(new GridLayout()); group.setLayoutData(new GridData()); listFeatures(group, type); scroll.setContent(group); scroll.setExpandHorizontal(true); scroll.setExpandVertical(true); scroll.setMinSize(group.computeSize(SWT.DEFAULT, SWT.DEFAULT)); tabItem.setControl(scroll); }
Example #4
Source File: SeriesLabelSheet.java From birt with Eclipse Public License 1.0 | 6 votes |
protected void createOutline( Composite cmpLeft, boolean bEnableUI ) { grpOutline = new Group( cmpLeft, SWT.NONE ); GridData gdGOutline = new GridData( GridData.FILL_HORIZONTAL ); grpOutline.setLayoutData( gdGOutline ); grpOutline.setText( Messages.getString( "LabelAttributesComposite.Lbl.Outline" ) ); //$NON-NLS-1$ grpOutline.setLayout( new FillLayout( ) ); grpOutline.setEnabled( bEnableUI ); int iStyles = LineAttributesComposite.ENABLE_WIDTH | LineAttributesComposite.ENABLE_STYLES | LineAttributesComposite.ENABLE_VISIBILITY | LineAttributesComposite.ENABLE_COLOR; iStyles |= getContext( ).getUIFactory( ).supportAutoUI( ) ? LineAttributesComposite.ENABLE_AUTO_COLOR : iStyles; liacOutline = new LineAttributesComposite( grpOutline, SWT.NONE, iStyles, getContext( ), getSeriesForProcessing( ).getLabel( ).getOutline( ), defSeries.getLabel( ).getOutline( ) ); liacOutline.addListener( this ); liacOutline.setAttributesEnabled( bEnableUI ); }
Example #5
Source File: GalleryExampleTab.java From nebula with Eclipse Public License 2.0 | 6 votes |
private void createItemParametersGroup(Composite parent) { Group dataGroup = createEmptyGroup(parent, "Item parameters"); dataGroup.setLayout(new RowLayout()); cItemRenderer = new Combo(dataGroup, SWT.READ_ONLY); cItemRenderer.setItems(new String[] { "Icon", "List" }); cItemRenderer.setText("Icon"); cItemRenderer.addListener(SWT.Selection, itemRendererParamSelectionListener); bItemDropShadow = createButton(dataGroup, SWT.CHECK, "Drop shadow", false, true); sItemDropShadowSize = new Spinner(dataGroup, SWT.NONE); sItemDropShadowSize.setMinimum(0); sItemDropShadowSize.setMaximum(20); sItemDropShadowSize.setIncrement(1); sItemDropShadowSize.setSelection(5); sItemDropShadowSize.addListener(SWT.Selection, itemRendererParamSelectionListener); bItemLabel = createButton(dataGroup, SWT.CHECK, "Display labels", false, true); }
Example #6
Source File: ExcelPreferencePage.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
@Override protected Control createContents(Composite parent) { Composite tparent = new Composite(parent, SWT.NONE); tparent.setLayout(new GridLayout()); tparent.setLayoutData(new GridData(GridData.FILL_BOTH)); Group groupCommon = new Group(tparent, SWT.NONE); groupCommon.setLayout(new GridLayout()); groupCommon.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); groupCommon.setText(Messages.getString("preference.ExcelPreferencePage.groupCommon")); HsImageLabel imageLabel = new HsImageLabel( Messages.getString("preference.ExcelPreferencePage.imageLabel"), Activator.getImageDescriptor(Constants.PREFERENCE_EXCEL_32)); Composite cmpCommon = imageLabel.createControl(groupCommon); cmpCommon.setLayout(new GridLayout()); cmpCommon.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); btnRedFont = new Button(cmpCommon, SWT.CHECK); btnRedFont.setText(Messages.getString("preference.ExcelPreferencePage.btnRedFont")); GridDataFactory.fillDefaults().applyTo(btnRedFont); imageLabel.computeSize(); btnRedFont.setSelection(preferenceStore.getBoolean(Constants.EXCEL_FILTER)); return parent; }
Example #7
Source File: SWTAtdl4jInputAndFilterDataPanel.java From atdl4j with MIT License | 6 votes |
protected Composite buildIncrementPolicyPanel( Composite aParent ) { Group tempIncrementPolicyGroup = new Group( aParent, SWT.NONE ); tempIncrementPolicyGroup.setText( "Increment Policy" ); GridLayout tempIncrementPolicyGroupLayout = new GridLayout( 2, false ); tempIncrementPolicyGroup.setLayout(tempIncrementPolicyGroupLayout); tempIncrementPolicyGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false )); Label tempLabelIncrementPolicyLotSize = new Label( tempIncrementPolicyGroup, SWT.NONE ); tempLabelIncrementPolicyLotSize.setText( "Lot Size:" ); textIncrementPolicyLotSize = new Text( tempIncrementPolicyGroup, SWT.NONE ); textIncrementPolicyLotSize.setToolTipText( "May be used in conjunction with Control/@incrementPolicy on spinner controls" ); textIncrementPolicyLotSize.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false )); setTextValue( textIncrementPolicyLotSize, getAtdl4jOptions().getInputAndFilterData().getInputIncrementPolicy_LotSize() ); Label tempLabelIncrementPolicyTick = new Label( tempIncrementPolicyGroup, SWT.NONE ); tempLabelIncrementPolicyTick.setText( "Tick Size:" ); textIncrementPolicyTick = new Text( tempIncrementPolicyGroup, SWT.NONE ); textIncrementPolicyTick.setToolTipText( "May be used in conjunction with Control/@incrementPolicy on spinner controls" ); textIncrementPolicyTick.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false )); setTextValue( textIncrementPolicyTick, getAtdl4jOptions().getInputAndFilterData().getInputIncrementPolicy_Tick() ); return tempIncrementPolicyGroup; }
Example #8
Source File: JavaSearchPage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
private Control createIncludeMask(Composite parent) { Group result= new Group(parent, SWT.NONE); result.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1)); result.setText(SearchMessages.SearchPage_searchIn_label); result.setLayout(new GridLayout(4, false)); fIncludeMasks= new Button[] { createButton(result, SWT.CHECK, SearchMessages.SearchPage_searchIn_sources, JavaSearchScopeFactory.SOURCES, true), createButton(result, SWT.CHECK, SearchMessages.SearchPage_searchIn_projects, JavaSearchScopeFactory.PROJECTS, true), createButton(result, SWT.CHECK, SearchMessages.SearchPage_searchIn_jre, JavaSearchScopeFactory.JRE, false), createButton(result, SWT.CHECK, SearchMessages.SearchPage_searchIn_libraries, JavaSearchScopeFactory.LIBS, true), }; SelectionAdapter listener= new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { updateOKStatus(); } }; for (int i= 0; i < fIncludeMasks.length; i++) { fIncludeMasks[i].addSelectionListener(listener); } return result; }
Example #9
Source File: TableComboExampleTab.java From nebula with Eclipse Public License 2.0 | 6 votes |
/** * @param parent */ private void createStyleGroup(Composite parent) { Group other = new Group(parent, SWT.NONE); other.setText("Style"); other.setLayout(new GridLayout()); other.setLayoutData(new GridData(GridData.FILL_VERTICAL)); borderStyle = new Button(other, SWT.CHECK); borderStyle.setText("SWT.BORDER"); borderStyle.setSelection(true); borderStyle.addListener(SWT.Selection, recreateListener); readOnlyStyle = new Button(other, SWT.CHECK); readOnlyStyle.setText("SWT.READ_ONLY"); readOnlyStyle.setSelection(true); readOnlyStyle.addListener(SWT.Selection, recreateListener); flatStyle = new Button(other, SWT.CHECK); flatStyle.setText("SWT.FLAT"); flatStyle.addListener(SWT.Selection, recreateListener); }
Example #10
Source File: RelationDialog.java From ermasterr with Apache License 2.0 | 6 votes |
/** * This method initializes group1 */ private void createChildGroup(final Composite composite, final int size) { final GridLayout gridLayout = new GridLayout(); gridLayout.marginHeight = 10; gridLayout.verticalSpacing = 10; final GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; final Group group = new Group(composite, SWT.NONE); group.setLayoutData(gridData); group.setLayout(gridLayout); group.setText(ResourceString.getResourceString("label.child")); final Label filler = new Label(group, SWT.NONE); filler.setText(""); final GridData fillerGridData = new GridData(); fillerGridData.heightHint = size; filler.setLayoutData(fillerGridData); createChildMandatoryGroup(group); }
Example #11
Source File: HyperlinkBuilder.java From birt with Eclipse Public License 1.0 | 6 votes |
private void createDrillthroughCreateLinkExpression( Composite container ) { Group group = new Group( container, SWT.NONE ); group.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); group.setText( STEPS[3] + Messages.getString( "HyperlinkBuilder.DrillThrough.CreateLinkExpr" ) ); //$NON-NLS-1$ GridLayout layout = new GridLayout( ); layout.numColumns = 3; group.setLayout( layout ); new Label( group, SWT.NONE ).setText( Messages.getString( "HyperlinkBuilder.DrillThroughLinkExpression" ) ); //$NON-NLS-1$ bookmarkEditor = new Text( group, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.heightHint = bookmarkEditor.computeSize( SWT.DEFAULT, SWT.DEFAULT ).y - bookmarkEditor.getBorderWidth( ) * 2; bookmarkEditor.setLayoutData( gd ); createExpressionButton( group, bookmarkEditor ); }
Example #12
Source File: MainProjectWizardPage.java From sarl with Apache License 2.0 | 6 votes |
@SuppressWarnings("synthetic-access") public Control createControl(Composite composite) { this.group = new Group(composite, SWT.NONE); this.group.setFont(composite.getFont()); this.group.setLayout(initGridLayout(new GridLayout(2, false), true)); this.group.setText(NewWizardMessages.NewJavaProjectWizardPageOne_JREGroup_title); this.useEEJRE.doFillIntoGrid(this.group, 1); final Combo eeComboControl = this.eeCombo.getComboControl(this.group); eeComboControl.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false)); this.useProjectJRE.doFillIntoGrid(this.group, 1); final Combo comboControl = this.jreCombo.getComboControl(this.group); comboControl.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false)); this.useDefaultJRE.doFillIntoGrid(this.group, 1); this.preferenceLink = new Link(this.group, SWT.NONE); this.preferenceLink.setFont(this.group.getFont()); this.preferenceLink.setText(NewWizardMessages.NewJavaProjectWizardPageOne_JREGroup_link_description); this.preferenceLink.setLayoutData(new GridData(GridData.END, GridData.CENTER, false, false)); this.preferenceLink.addSelectionListener(this); updateEnableState(); return this.group; }
Example #13
Source File: DateChooserComboExampleTab.java From nebula with Eclipse Public License 2.0 | 6 votes |
private void createStyleGroup(Composite parent) { Group gp = new Group(parent, SWT.NONE); gp.setText("Style"); gp.setLayout(new RowLayout()); GridData data = new GridData(SWT.FILL, SWT.FILL, false, false); // data.horizontalSpan = 2; gp.setLayoutData(data); borderStyle = new Button(gp, SWT.CHECK); borderStyle.setText("SWT.BORDER"); borderStyle.addListener(SWT.Selection, recreateListener); readOnlyStyle = new Button(gp, SWT.CHECK); readOnlyStyle.setText("SWT.READ_ONLY"); readOnlyStyle.addListener(SWT.Selection, recreateListener); flatStyle = new Button(gp, SWT.CHECK); flatStyle.setText("SWT.FLAT"); flatStyle.addListener(SWT.Selection, recreateListener); }
Example #14
Source File: DefaultRunOptionsPage.java From google-cloud-eclipse with Apache License 2.0 | 5 votes |
@Override protected Control createContents(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout(1, false)); Group group = new Group(composite, SWT.NULL); group.setText(Messages.getString("execution.options.for.google.cloud.platform")); //$NON-NLS-1$ int numColumns = 3; group.setLayout(new GridLayout(numColumns, false)); group.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false)); runOptionsComponent = new RunOptionsDefaultsComponent( group, numColumns, new DialogPageMessageTarget(this), preferences); return composite; }
Example #15
Source File: SplitXliffWizardPage.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 创建要分割文件的显示区 * @param tparent */ public void createSplitXlfNameGroup(Composite tparent) { final Group xliffDataGroup = new Group(tparent, SWT.NONE); GridLayoutFactory.fillDefaults().numColumns(2).margins(8, 8).applyTo(xliffDataGroup); GridDataFactory.fillDefaults().grab(true, false).applyTo(xliffDataGroup); xliffDataGroup.setText(Messages.getString("wizard.SplitXliffWizardPage.xliffDataGroup")); GridData textData = new GridData(SWT.FILL, SWT.CENTER, true, false); textData.widthHint = 200; Label xlfNameLbl = new Label(xliffDataGroup, SWT.RIGHT); xlfNameLbl.setText(Messages.getString("wizard.SplitXliffWizardPage.xlfNameLbl")); GridDataFactory.swtDefaults().align(SWT.RIGHT, SWT.CENTER).applyTo(xlfNameLbl); xliffNameTxt = new Text(xliffDataGroup, SWT.BORDER); xliffNameTxt.setText(splitFile.getFullPath().toOSString()); GridDataFactory.fillDefaults().grab(true, false).applyTo(xliffNameTxt); xliffNameTxt.setEditable(false); Label targetFilsPathLbl = new Label(xliffDataGroup, SWT.RIGHT); targetFilsPathLbl.setText(Messages.getString("wizard.SplitXliffWizardPage.targetFilsPathLbl")); GridDataFactory.swtDefaults().align(SWT.RIGHT, SWT.CENTER).applyTo(targetFilsPathLbl); targetXlfPathTxt = new Text(xliffDataGroup, SWT.BORDER); targetXlfPathTxt.setLayoutData(textData); targetXlfPathTxt.setText(splitFile.getParent().getFullPath().append(splitFile.getName() + "_split") .toOSString()); targetXlfPathTxt.setEditable(false); if ("\\".equals(System.getProperty("file.separator"))) { separator = "\\"; } else { separator = "/"; } validXliff(); }
Example #16
Source File: WidgetBuilder.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public WidgetBuilder<Group> group( Composite composite, Control above, String text ) { return new WidgetBuilder<Group>() .container( composite ) .props( props ) .margin( MARGIN, MARGIN ) .style( SWT.BORDER_SOLID ) .left( 0, 0 ) .right( 100, -MARGIN ) .text( text ) .below( above, 15 ) .swtControlFactory( Group::new ); }
Example #17
Source File: AbstractPopup.java From workspacemechanic with Eclipse Public License 1.0 | 5 votes |
public void open() { shell.setLayout(new FillLayout()); shell.setBackgroundMode(SWT.INHERIT_DEFAULT); shell.setBackground(backgroundColor); Composite top = new Group(shell, SWT.NONE); // Closes when clicking in some whitespace, but not enough. // TODO(konigsberg): close when clicking anywhere but whitespace. top.addMouseListener(new MouseAdapter() { @Override public void mouseUp(MouseEvent e) { close(); } }); initializeLayout(top); Composite titleBar = new Composite(top, SWT.NONE); initializeLayout(titleBar); createTitleBar(titleBar); Composite popupArea = new Composite(top, SWT.NONE); initializeLayout(popupArea); createContents(popupArea); shell.pack(); setPosition(shell); shell.setVisible(true); if (displayTimeMillis > 0) { display.timerExec(displayTimeMillis, new Runnable() { public void run() { close(); } }); } }
Example #18
Source File: NewProjectNameAndLocationWizardPage.java From Pydev with Eclipse Public License 1.0 | 5 votes |
public Control createControl(Composite composite) { Group workingSetGroup = new Group(composite, SWT.NONE); workingSetGroup.setFont(composite.getFont()); workingSetGroup.setText("Working sets"); workingSetGroup.setLayout(new GridLayout(1, false)); fWorkingSetBlock.createContent(workingSetGroup); return workingSetGroup; }
Example #19
Source File: GWTProjectPropertyPage.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 5 votes |
private void createSdkComponent(Composite parent) { Group group = SWTFactory.createGroup(parent, "GWT SDK", 1, 1, GridData.FILL_HORIZONTAL); sdkSelectionBlock = new ProjectSdkSelectionBlock<GwtSdk>(group, SWT.NONE, getJavaProject()) { @Override protected void doConfigure() { if (Window.OK == PreferencesUtil.createPreferenceDialogOn(getShell(), GwtPreferencePage.ID, new String[] {GwtPreferencePage.ID}, null).open()) { GWTProjectPropertyPage.this.fieldChanged(); } } @Override protected GwtSdk doFindSdkFor(IJavaProject javaProject) { return GwtSdk.findSdkFor(javaProject); } @Override protected String doGetContainerId() { return GWTRuntimeContainer.CONTAINER_ID; } @Override protected SdkManager<GwtSdk> doGetSdkManager() { return GWTPreferences.getSdkManager(); } }; }
Example #20
Source File: SQLDataSetEditorPage.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * * @param group */ private void setupShowSystemTableCheckBox( Group group ) { GridData layoutData = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ); layoutData.horizontalSpan = 2; showSystemTableCheckBox = new Button( group, SWT.CHECK ); showSystemTableCheckBox.setText( JdbcPlugin.getResourceString( "tablepage.button.showSystemTables" ) ); //$NON-NLS-1$ showSystemTableCheckBox.setSelection( false ); showSystemTableCheckBox.setLayoutData( layoutData ); showSystemTableCheckBox.setEnabled( true ); }
Example #21
Source File: FilterPropertiesEditionPartImpl.java From eip-designer with Apache License 2.0 | 5 votes |
/** * */ protected Composite createPropertiesGroup(Composite parent) { Group propertiesGroup = new Group(parent, SWT.NONE); propertiesGroup.setText(EipMessages.FilterPropertiesEditionPart_PropertiesGroupLabel); GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL); propertiesGroupData.horizontalSpan = 3; propertiesGroup.setLayoutData(propertiesGroupData); GridLayout propertiesGroupLayout = new GridLayout(); propertiesGroupLayout.numColumns = 3; propertiesGroup.setLayout(propertiesGroupLayout); return propertiesGroup; }
Example #22
Source File: TextUMLPreferencePage.java From textuml with Eclipse Public License 1.0 | 5 votes |
@Override protected Control createContents(Composite parent) { Group editorOptions = new Group(parent, SWT.LEFT); GridLayout layout = new GridLayout(); editorOptions.setLayout(layout); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); editorOptions.setLayoutData(data); editorOptions.setText("TextUML editor options"); formatOnSaveCheckBox = new Button(editorOptions, SWT.CHECK); formatOnSaveCheckBox.setText("Auto format on save"); new Label(editorOptions, SWT.NONE); final Label outlineLabel = new Label(editorOptions, SWT.NONE); outlineLabel.setText("Outline options:"); checkboxTableViewer = CheckboxTableViewer.newCheckList(editorOptions, SWT.BORDER); checkboxTableViewer.setLabelProvider(new TableLabelProvider()); checkboxTableViewer.setContentProvider(new ArrayContentProvider()); table = checkboxTableViewer.getTable(); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); setupData(); boolean formatOnSaveSetting = TextUMLUIPlugin.getDefault().getPluginPreferences() .getBoolean(TextUMLUIPlugin.FORMAT_ON_SAVE); formatOnSaveCheckBox.setSelection(formatOnSaveSetting); return editorOptions; }
Example #23
Source File: RoutePropertiesEditionPartImpl.java From eip-designer with Apache License 2.0 | 5 votes |
/** * */ protected Composite createPropertiesGroup(Composite parent) { Group propertiesGroup = new Group(parent, SWT.NONE); propertiesGroup.setText(EipMessages.RoutePropertiesEditionPart_PropertiesGroupLabel); GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL); propertiesGroupData.horizontalSpan = 3; propertiesGroup.setLayoutData(propertiesGroupData); GridLayout propertiesGroupLayout = new GridLayout(); propertiesGroupLayout.numColumns = 3; propertiesGroup.setLayout(propertiesGroupLayout); return propertiesGroup; }
Example #24
Source File: ConfigDialog.java From http4e with Apache License 2.0 | 5 votes |
private void createControlWidgets( Composite controlGroup){ Group group = new Group(controlGroup, SWT.NONE); // group.setText("HTTP Response viewable size"); GridLayout layout = new GridLayout(); layout.numColumns = 3; layout.marginHeight = 10; layout.marginWidth = 20; group.setLayout(layout); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridData grData = new GridData(GridData.FILL_HORIZONTAL); grData.widthHint = 160; new Label(group, SWT.NONE).setText("HTTP Response MAX size"); sizeBox = new Text(group, SWT.BORDER); sizeBox.setLayoutData(grData); sizeBox.addModifyListener(new ModifyListener() { public void modifyText( ModifyEvent e){ try { size = Integer.parseInt(sizeBox.getText()); } catch (Exception e2) { // ignore } } }); new Label(group, SWT.NONE).setText("KB"); }
Example #25
Source File: InputParameterDialog.java From birt with Eclipse Public License 1.0 | 5 votes |
private Composite createParamGroupSection( AbstractParameterGroup paramGroup, Composite parent ) { Group group = new Group( parent, SWT.NONE ); group.setText( paramGroup.getHandle( ).getDisplayLabel( ) ); group.setLayoutData( new GridData( GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL ) ); group.setLayout( new GridLayout( ) ); return group; }
Example #26
Source File: ExportToDDLDialog.java From ermaster-b with Apache License 2.0 | 5 votes |
private void createCreateCheckboxGroup(Composite parent) { Group group = new Group(parent, SWT.NONE); GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; gridData.verticalAlignment = GridData.FILL; gridData.grabExcessVerticalSpace = true; group.setLayoutData(gridData); group.setText("CREATE"); GridLayout layout = new GridLayout(); layout.numColumns = 2; group.setLayout(layout); this.createTablespace = CompositeFactory.createCheckbox(this, group, "label.tablespace"); this.createSequence = CompositeFactory.createCheckbox(this, group, "label.sequence"); this.createTrigger = CompositeFactory.createCheckbox(this, group, "label.trigger"); this.createView = CompositeFactory.createCheckbox(this, group, "label.view"); this.createIndex = CompositeFactory.createCheckbox(this, group, "label.index"); this.createTable = CompositeFactory.createCheckbox(this, group, "label.table"); this.createForeignKey = CompositeFactory.createCheckbox(this, group, "label.foreign.key"); this.createComment = CompositeFactory.createCheckbox(this, group, "label.comment"); }
Example #27
Source File: UpdaterDialog.java From developer-studio with Apache License 2.0 | 5 votes |
private Group createFeatureRepresentationGroup(Group group, GridData gridData) { final Group featureGroup = new Group(group, SWT.NONE); featureGroup.setBackground(featureGroup.getDisplay().getSystemColor(SWT.COLOR_WHITE)); gridData.horizontalSpan = 2; featureGroup.setLayout(new GridLayout(4, false)); featureGroup.setLayoutData(gridData); return featureGroup; }
Example #28
Source File: SelectValueAccountingSysFieldDialog.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
@Override protected Control createDialogArea(Composite parent){ setTitle(accountingSys + " Feld umbenennen"); setMessage("Einträge für neuen und alten Feldnamen gefunden.\nWelcher Wert soll für '" + newField + "' gespeichert werden?"); Composite container = (Composite) super.createDialogArea(parent); Composite area = new Composite(container, SWT.NONE); area.setLayoutData(new GridData(GridData.FILL_BOTH)); area.setLayout(new GridLayout(1, false)); Group group = new Group(area, SWT.NONE); group.setLayout(new GridLayout(1, false)); group.setLayoutData(new GridData(GridData.FILL_BOTH)); Label lblInfo = new Label(group, SWT.NONE); lblInfo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); lblInfo.setText("Betroffener Patient: " + patient.getLabel()); Label lblOldField = new Label(group, SWT.NONE); lblOldField.setText("Altes Feld - " + oldField); btnOldValue = new Button(group, SWT.RADIO); btnOldValue.setText("Wert: " + oldValue); Label label = new Label(group, SWT.SEPARATOR | SWT.HORIZONTAL); label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); Label lblNewField = new Label(group, SWT.NONE); lblNewField.setText("Neues Feld - " + newField); btnNewValue = new Button(group, SWT.RADIO); btnNewValue.setText("Wert: " + newValue); btnRememberProceedure = new Button(area, SWT.CHECK); btnRememberProceedure.setText("Auswahl für weitere Konflikte merken"); return area; }
Example #29
Source File: JavaSearchPage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private Control createLimitTo(Composite parent) { fLimitToGroup= new Group(parent, SWT.NONE); fLimitToGroup.setText(SearchMessages.SearchPage_limitTo_label); fLimitToGroup.setLayout(new GridLayout(2, false)); fillLimitToGroup(TYPE, ALL_OCCURRENCES); return fLimitToGroup; }
Example #30
Source File: BuilderConfigDialog.java From texlipse with Eclipse Public License 1.0 | 5 votes |
/** * Create the contents of the dialog. */ protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); GridLayout gl = (GridLayout) composite.getLayout(); gl.numColumns = 2; Label descrLabel = new Label(composite, SWT.LEFT); descrLabel.setText(TexlipsePlugin.getResourceString("preferenceBuilderDialogDescriptionLabel").replaceAll("%s", builder.getDescription())); GridData dgd = new GridData(GridData.FILL_HORIZONTAL); dgd.horizontalSpan = 2; descrLabel.setLayoutData(dgd); addFileBrowser(composite); addArgumentsField(composite); if (builder.getInputFormat() != null && builder.getInputFormat().length() > 0 && builder.getOutputFormat() != null && builder.getOutputFormat().length() > 0) { addFormatsField(composite); } Group group = new Group(composite, SWT.SHADOW_IN); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ((GridData)group.getLayoutData()).horizontalSpan = 2; group.setLayout(new GridLayout()); statusField = new Label(group, SWT.LEFT); statusField.setText(resolveStatus()); statusField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); statusField.setToolTipText(TexlipsePlugin.getResourceString("preferenceBuilderDialogStatusTooltip")); return composite; }