Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TabFolder


            }
        }
       
        Composite composite = (Composite) super.createDialogArea(parent);
        composite.setLayout(new FillLayout());
        final TabFolder tabFolder = new TabFolder(composite, SWT.NONE);
        createHeadersTab(tabFolder);
        createBodyTab(tabFolder);
       
        if (from != null) {
            fromText.setText(from);
View Full Code Here


            public void widgetSelected(SelectionEvent event) {
                globalButtonPressed();
            }
        });

        tabFolder = new TabFolder(composite, SWT.NONE);
        gd = new GridData();
        gd.horizontalSpan = 3;
        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
View Full Code Here

            public void widgetSelected(SelectionEvent event) {
                globalButtonPressed();
            }
        });

        tabFolder = new TabFolder(composite, SWT.NONE);
        gd = new GridData();
        gd.horizontalSpan = 3;
        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
View Full Code Here

            public void widgetSelected(SelectionEvent event) {
                globalButtonPressed();
            }
        });

        tabFolder = new TabFolder(parent, SWT.NONE);
        gd = new GridData();
        gd.horizontalSpan = 3;
        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
View Full Code Here

        dialectCombo.setItems(DIALECTS);
        dialectCombo.select(0);
        gd = new GridData();
        dialectCombo.setLayoutData(gd);
       
        tabFolder = new TabFolder(parent, SWT.NONE);
        gd = new GridData();
        gd.horizontalSpan = 4;
        gd.grabExcessHorizontalSpace = true;
        gd.grabExcessVerticalSpace = true;
        gd.verticalAlignment = GridData.FILL;
View Full Code Here

    /**
     * The <code>MultiPageEditor</code> implementation of this <code>IWorkbenchPart</code>
     * method creates a <code>TabFolder</code> control.
     */
    public void createPartControl(Composite parent) {
        tabFolder = new TabFolder(parent, SWT.NONE);
        tabFolder.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                sync();
            }
        });
View Full Code Here

  protected final Control createContents(final Composite parent) {
   
    PlatformUI.getWorkbench().getHelpSystem()
      .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));
View Full Code Here

    }
   
   
    private void createNotificationsTabFolder()
    {
        _notificationTabFolder = new TabFolder(_form.getBody(), SWT.NONE);
        FormData layoutData = new FormData();
        layoutData.left = new FormAttachment(0);
        layoutData.top = new FormAttachment(0);
        layoutData.right = new FormAttachment(100);
        layoutData.bottom = new FormAttachment(100);
View Full Code Here

        //no instances
    }

    public static TabFolder generateMBeanTabFolder(final Composite parent, final JMXManagedObject mbean, final MBeanServerConnection mbsc)
    {
        TabFolder tabFolder = new TabFolder(parent, SWT.NONE);
        FormData layoutData = new FormData();
        layoutData.left = new FormAttachment(0);
        layoutData.top = new FormAttachment(0);
        layoutData.right = new FormAttachment(100);
        layoutData.bottom = new FormAttachment(100);
        tabFolder.setLayoutData(layoutData);

        TabItem tab;
        TabControl controller;
        QpidMBeanType mbeanType = QpidMBeanType.get(mbean.getType());

        switch(mbeanType)
        {
            case QUEUE:
                createAttributesTab(tabFolder, mbean);
               
                tab = new TabItem(tabFolder, SWT.NONE);
                tab.setText("Operations");
                controller = new QueueOperationsTabControl(tabFolder, mbean, mbsc);
                tab.setControl(controller.getControl());
                tab.setData(TabControl.CONTROLLER, controller);
                break;
            case CONNECTION:
                createAttributesTab(tabFolder, mbean);
               
                tab = new TabItem(tabFolder, SWT.NONE);
                tab.setText("Operations");
                controller = new ConnectionOperationsTabControl(tabFolder, mbean, mbsc);
                tab.setControl(controller.getControl());
                tab.setData(TabControl.CONTROLLER, controller);
                break;
            case EXCHANGE:
                createAttributesTab(tabFolder, mbean);
               
                if (mbean.getProperty(EXCHANGE_TYPE).equalsIgnoreCase("headers"))
                {
                    tab = new TabItem(tabFolder, SWT.NONE);
                    tab.setText("Operations");
                    controller = new HeadersExchangeOperationsTabControl(tabFolder, mbean, mbsc);
                    tab.setControl(controller.getControl());
                    tab.setData(TabControl.CONTROLLER, controller);
                }
                else
                {
                    tab = new TabItem(tabFolder, SWT.NONE);
                    tab.setText("Operations");
                    controller = new ExchangeOperationsTabControl(tabFolder, mbean, mbsc);
                    tab.setControl(controller.getControl());
                    tab.setData(TabControl.CONTROLLER, controller);
                }
                break;
            case VHOST_MANAGER:
                createAttributesTab(tabFolder, mbean);

                tab = new TabItem(tabFolder, SWT.NONE);
                tab.setText("Operations");
                controller = new VHostTabControl(tabFolder, mbean, mbsc);
                tab.setControl(controller.getControl());
                tab.setData(TabControl.CONTROLLER, controller);
                break;
            case LOGGING_MANAGEMENT:
                tab = new TabItem(tabFolder, SWT.NONE);
                tab.setText("Runtime Options");
                controller = new RuntimeTabControl(tabFolder, mbean, mbsc);
                tab.setControl(controller.getControl());
                tab.setData(TabControl.CONTROLLER, controller);

                tab = new TabItem(tabFolder, SWT.NONE);
                tab.setText("ConfigurationFile Options");
                controller = new ConfigurationFileTabControl(tabFolder, mbean, mbsc);
                tab.setControl(controller.getControl());
                tab.setData(TabControl.CONTROLLER, controller);
                break;
            case USER_MANAGEMENT:
                tab = new TabItem(tabFolder, SWT.NONE);
                tab.setText("Operations");
                controller = new UserManagementTabControl(tabFolder, mbean, mbsc);
                tab.setControl(controller.getControl());
                tab.setData(TabControl.CONTROLLER, controller);
                break;
            case CONFIGURATION_MANAGEMENT:
                createGenericTabFolder(tabFolder, mbean);
                break;
            case UNKNOWN:
                createGenericTabFolder(tabFolder, mbean);
                break;
        }
       
        createNotificationsTabIfNecessary(tabFolder, mbean);
       
        tabFolder.addListener(SWT.Selection, new Listener()
        {
            public void handleEvent(Event evt)
            {
                TabItem tab = (TabItem)evt.item;       
                TabControl controller = (TabControl)tab.getData(TabControl.CONTROLLER);
View Full Code Here

    /**
     * Creates TabFolder and tabs for all mbeantype (Connection, Queue, and Exchange)
     */
    public static TabFolder generateMBeanTypeTabFolder(final Composite parent, ManagedServer server, String virtualHost)
    {
        TabFolder tabFolder = new TabFolder(parent, SWT.NONE);
        FormData layoutData = new FormData();
        layoutData.left = new FormAttachment(0);
        layoutData.top = new FormAttachment(0);
        layoutData.right = new FormAttachment(100);
        layoutData.bottom = new FormAttachment(100);
        tabFolder.setLayoutData(layoutData);

       
        TabItem tab;
        TabControl controller;
             
        tab = new TabItem(tabFolder, SWT.NONE);
        tab.setText(CONNECTION);
        controller = new ConnectionTypeTabControl(tabFolder,server,virtualHost);
        tab.setData(TabControl.CONTROLLER, controller);
        tab.setControl(controller.getControl());
       
        tab = new TabItem(tabFolder, SWT.NONE);
        tab.setText(EXCHANGE);     
        controller = new ExchangeTypeTabControl(tabFolder,server,virtualHost);
        tab.setData(TabControl.CONTROLLER, controller);
        tab.setControl(controller.getControl());
       
        tab = new TabItem(tabFolder, SWT.NONE);
        tab.setText(QUEUE)
        controller = new QueueTypeTabControl(tabFolder,server,virtualHost);
        tab.setData(TabControl.CONTROLLER, controller);
        tab.setControl(controller.getControl());
       
        tabFolder.addListener(SWT.Selection, new Listener()
        {
            public void handleEvent(Event evt)
            {
                TabItem tab = (TabItem)evt.item;       
                TabControl controller = (TabControl)tab.getData(TabControl.CONTROLLER);
View Full Code Here

TOP

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

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.