Package org.eclipse.swt.widgets

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


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

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

    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

        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

                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

    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

    l.numColumns = 4;
  }

  @Override
  protected void doCompositeStart(LObject object) {
    TabFolder tabFolder = new TabFolder(parent, SWT.BORDER)
    push(tabFolder);
  }
View Full Code Here

    l.numColumns = 4;
  }

  @Override
  protected void doPageStart(LObject object) {
    TabFolder tabFolder = new TabFolder(parent, SWT.BORDER);
    push(tabFolder);
  }
View Full Code Here

    l.numColumns = 4;
  }

  @Override
  protected void doTabStart(LObject object) {
    TabFolder tabFolder = new TabFolder(parent, SWT.BORDER);
    push(tabFolder);
  }
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.