Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TabFolder


    Composite composite = new Composite(parent, SWT.NULL);
   
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    composite.setLayout(new GridLayout(1, false));
   
    TabFolder tabFolder = new TabFolder(composite, SWT.NULL);
    tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
   
    TabItem elementTab = new TabItem(tabFolder,SWT.NULL);
    elementTab.setText(HTMLPlugin.getResourceString("HTMLEditorPreferencePage.CustomElements"));
    elementTab.setControl(createElementArea(tabFolder));
   
View Full Code Here


  /**
   * This method initializes tabFolder 
   *
   */
  private void createTabFolder() {
    editAccountParent = tabFolder = new TabFolder(sShell, SWT.NONE);
    createComposite();
    TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
    tabItem.setText("Account");
    tabItem.setControl(composite);
  }
View Full Code Here

     * {@inheritDoc}
     */
    protected Control createContents( Composite parent )
    {
        BaseWidgetUtils.createSpacer( parent, 1 );
        tabFolder = new TabFolder( parent, SWT.TOP );

        createLdifTab();
        createTableTab();
        createCsvTab();
        createXlsTab();
View Full Code Here

    private class TabMediator {
        TabFolder folder;
        private Set<TabListener> tabs = new HashSet<TabListener>();

        TabMediator(Composite parent) {
            folder = new TabFolder(parent, SWT.NONE);
            tabs.add(new TabMain(this));
            tabs.add(new TabAdvanced(this));
        }
View Full Code Here

  private class TabMediator {
    TabFolder folder;
    private Set<ChangeListener> tabs = new HashSet<ChangeListener>();

    TabMediator(Composite parent) {
      folder = new TabFolder(parent, SWT.NONE);
      tabs.add(new TabMain(this));
      tabs.add(new TabAdvanced(this));
    }
View Full Code Here

        {
            MBeanUtility.handleException(_mbean, ex);
            return;
        }

        TabFolder tabFolder = tabFolderMap.get(_mbean.getType());
        /*
         * This solution can be used if there are many versions of Qpid running. Otherwise
         * there is no need to create a tabFolder everytime a bean is selected.
        if (tabFolder != null && !tabFolder.isDisposed())
        {
            tabFolder.dispose();
        }
        tabFolder = createTabFolder();
        */
        if (tabFolder == null)
        {
            tabFolder = createMBeanTabFolder();
        }
       
        int tabIndex = 0;
        if (NOTIFICATIONS.equals(_selectedNode.getType()))
        {
            tabIndex = tabFolder.getItemCount() -1;
        }
      
        TabItem tab = tabFolder.getItem(tabIndex);
        // If folder is being set as visible after tab refresh, then the tab
        // doesn't have the focus.                 
        tabFolder.setSelection(tabIndex);
        refreshTab(tab);
        setVisible(tabFolder);
    }
View Full Code Here

        createNotificationsTabFolder();
    }
   
    private TabFolder createMBeanTabFolder()
    {
        TabFolder tabFolder = 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);
        tabFolder.setLayoutData(layoutData);
        tabFolder.setVisible(false);
       
        createAttributesTab(tabFolder);
        createOperationTabs(tabFolder);
        createNotificationsTab(tabFolder);
       
        tabFolder.addListener(SWT.Selection, new Listener()
        {
            public void handleEvent(Event evt)
            {
                TabItem tab = (TabItem)evt.item;       
                refreshTab(tab);
View Full Code Here

       if (serverRegistry.getAttributeModel(_mbean).getCount() == 0)
       {
           throw new InfoRequiredException("There are no attributes to be edited for " + name);
       }
      
       TabFolder tabFolder = tabFolderMap.get(_mbean.getType());
       int index = tabFolder.getSelectionIndex();
       if (index != 0)
       {
           tabFolder.setSelection(0);
           throw new InfoRequiredException("Please select the attribute to be edited");
       }
      
       TabItem tab = tabFolder.getItem(0);
       AttributesTabControl tabControl = (AttributesTabControl)tab.getData(CONTROLLER);
       AttributeData attribute = tabControl.getSelectionAttribute();
       if (attribute == null)
           throw new InfoRequiredException("Please select the attribute to be edited");
      
View Full Code Here

    /**
     * Creates TabFolder and tabs for each mbeantype (eg Connection, Queue, Exchange)
     */
    private void createMBeanTypeTabFolder()
    {
        typeTabFolder = 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

        });
    }
   
    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

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.