Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TabItem


          notifications.add(new Notification(notification, "not-completed"));
        }
      }
    }
   
    final TabItem headersTabItem = new TabItem(tabFolder, SWT.NONE);
        headersTabItem.setText("Notifications");

        final Composite container = new Composite(tabFolder, SWT.NONE);
        final GridLayout gridLayout = new GridLayout();
        gridLayout.horizontalSpacing = 2;
        container.setLayout(gridLayout);
        headersTabItem.setControl(container);
       
        final TableViewer tableViewer = new TableViewer(container, SWT.BORDER
                | SWT.FULL_SELECTION);
       
        TableViewerColumn column = new TableViewerColumn(tableViewer, SWT.NONE);
View Full Code Here


       
        return composite;
    }

    public void createHeadersTab(TabFolder tabFolder) {
        final TabItem headersTabItem = new TabItem(tabFolder, SWT.NONE);
        headersTabItem.setText("Header");
        final Composite container = new Composite(tabFolder, SWT.NONE);
        final GridLayout gridLayout = new GridLayout();
        gridLayout.numColumns = 2;
        gridLayout.horizontalSpacing = 2;
        container.setLayout(gridLayout);
        headersTabItem.setControl(container);

        final Label recipientsLabel = new Label(container, SWT.NONE);
        final GridData gd_recipientsLabel = new GridData();
        recipientsLabel.setLayoutData(gd_recipientsLabel);
        recipientsLabel.setText("Recipients");
View Full Code Here

        fromText = new Text(container, SWT.BORDER);
        fromText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    }

    public void createBodyTab(TabFolder tabFolder) {
        final TabItem headersTabItem = new TabItem(tabFolder, SWT.NONE);
        headersTabItem.setText("Body");

        final Composite container = new Composite(tabFolder, SWT.NONE);
        final GridLayout gridLayout = new GridLayout();
        gridLayout.horizontalSpacing = 2;
        container.setLayout(gridLayout);
        headersTabItem.setControl(container);

        // subject label and text field
        final Label subjectLabel = new Label(container, SWT.NONE);
        subjectLabel.setLayoutData(new GridData());
        subjectLabel.setText("Subject");
View Full Code Here

        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
        gd.horizontalAlignment = GridData.FILL;
        tabFolder.setLayoutData(gd);
        TabItem textEditorTab = new TabItem(tabFolder, SWT.NONE);
        textEditorTab.setText("Textual Editor");

        textEditorTab.setControl(createTextualEditor(tabFolder));

        alwaysTrue.addSelectionListener(new SelectionListener() {
            public void widgetSelected(SelectionEvent e) {
                tabFolder.setVisible(!alwaysTrue.getSelection());
            }
View Full Code Here

        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
        gd.horizontalAlignment = GridData.FILL;
        tabFolder.setLayoutData(gd);
        TabItem textEditorTab = new TabItem(tabFolder, SWT.NONE);
        textEditorTab.setText("Textual Editor");

        textEditorTab.setControl(createTextualEditor(tabFolder));
        return composite;
    }
View Full Code Here

        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
        gd.horizontalAlignment = GridData.FILL;
        tabFolder.setLayoutData(gd);
        TabItem textEditorTab = new TabItem(tabFolder, SWT.NONE);
        textEditorTab.setText("Textual Editor");

        textEditorTab.setControl(createTextualEditor(tabFolder));
        return composite;
    }
View Full Code Here

        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
        gd.horizontalAlignment = GridData.FILL;
        tabFolder.setLayoutData(gd);
        TabItem textEditorTab = new TabItem(tabFolder, SWT.NONE);
        textEditorTab.setText("Textual Editor");

        textEditorTab.setControl(createTextualEditor(tabFolder));
        return tabFolder;
    }
View Full Code Here

      .setHelp(parent, IWorkbenchHelpContextIds.KEYS_PREFERENCE_PAGE);
   
    tabFolder = new TabFolder(parent, SWT.NULL);

    // View tab
    final TabItem viewTab = new TabItem(tabFolder, SWT.NULL);
    viewTab.setText(Util.translateString(RESOURCE_BUNDLE, "viewTab.Text")); //$NON-NLS-1$
    viewTab.setControl(createViewTab(tabFolder));

    // Modify tab
    final TabItem modifyTab = new TabItem(tabFolder, SWT.NULL);
    modifyTab.setText(Util.translateString(RESOURCE_BUNDLE,
        "modifyTab.Text")); //$NON-NLS-1$
    modifyTab.setControl(createModifyTab(tabFolder));

    // Do some fancy stuff.
    applyDialogFont(tabFolder);
    final IPreferenceStore store = getPreferenceStore();
    final int selectedTab = store
View Full Code Here

        }
       
        OperationDataModel operationModel = serverRegistry.getOperationModel(mbean);
        for(OperationData operationData : operationModel.getOperations())
        {
            TabItem operationTab = new TabItem(tabFolder, SWT.NONE);
            operationTab.setText(ViewUtility.getDisplayText(operationData.getName()));
            operationTab.setData(operationData);
            OperationTabControl control = new OperationTabControl(tabFolder, operationData);
            operationTab.setData(TabControl.CONTROLLER, control);
            operationTab.setControl(control.getControl());
        }
    }
View Full Code Here

            return;
        }
       
        NotificationsTabControl controller = new NotificationsTabControl(tabFolder, mbean);
       
        TabItem tab = new TabItem(tabFolder, SWT.NONE);
        tab.setText(NOTIFICATIONS);
        tab.setData(TabControl.CONTROLLER, controller);
        tab.setControl(controller.getControl());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.TabItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.