Examples of TabFolder


Examples of org.eclipse.swt.widgets.TabFolder

        //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

Examples of org.eclipse.swt.widgets.TabFolder

    /**
     * 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

Examples of org.eclipse.swt.widgets.TabFolder

    /**
     * Creates TabFolder and tab for the Connection selection view
     */
    public static TabFolder generateConnectionTypeTabFolder(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());
               
        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

Examples of org.eclipse.swt.widgets.TabFolder

    /**
     * Creates TabFolder and tab for the Exchange selection view
     */
    public static TabFolder generateExchangeTypeTabFolder(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(EXCHANGE);     
        controller = new ExchangeTypeTabControl(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

Examples of org.eclipse.swt.widgets.TabFolder

    /**
     * Creates TabFolder and tab for the Queue selection view
     */
    public static TabFolder generateQueueTypeTabFolder(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(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

Examples of org.eclipse.swt.widgets.TabFolder

    Display display = new Display();
    final Shell shell = new Shell(display);
    shell.setSize(214, 236);
    shell.setLayout(new GridLayout(1, true));

    TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
    tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
   
    TabItem tbtmFind = new TabItem(tabFolder, SWT.NONE);
    tbtmFind.setText("Find");
   
    Composite composite = new Composite(tabFolder, SWT.NONE);
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder

        GridData gd = new GridData( GridData.FILL_BOTH );
        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH ) * 3 / 2;
        gd.heightHint = convertVerticalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH ) * 2 / 3;
        composite.setLayoutData( gd );

        tabFolder = new TabFolder( composite, SWT.TOP );
        GridLayout mainLayout = new GridLayout();
        mainLayout.marginWidth = 0;
        mainLayout.marginHeight = 0;
        tabFolder.setLayout( mainLayout );
        tabFolder.setLayoutData( new GridData( GridData.FILL_BOTH ) );
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder

                tabFolder.setEnabled( verifyCertificatesButton.getSelection() );
            }
        } );

        // certificate list widget
        tabFolder = new TabFolder( composite, SWT.TOP );
        GridLayout mainLayout = new GridLayout();
        mainLayout.marginWidth = 0;
        mainLayout.marginHeight = 0;
        tabFolder.setLayout( mainLayout );
        tabFolder.setLayoutData( new GridData( GridData.FILL, GridData.FILL, true, true ) );
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder

    public void createControl(Composite parent) {
        setTitle("IvyDE Managed Libraries");
        setDescription("Choose ivy file and its configurations.");

        TabFolder tabs = new TabFolder(parent, SWT.BORDER);
        tabs.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));

        TabItem mainTab = new TabItem(tabs, SWT.NONE);
        mainTab.setText("Main");
        mainTab.setControl(createMainTab(tabs));
View Full Code Here

Examples of org.eclipse.swt.widgets.TabFolder

    l.numColumns = 4;
  }

  @Override
  protected void doCompositeStart(LObject object) {
    TabFolder tabFolder = new TabFolder(parent, SWT.BORDER)
    push(tabFolder);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.