Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TabItem


      }
    });
    tabFolder.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));

    final TabItem tabItemScript = new TabItem(tabFolder, SWT.NONE);
    tabItemScript.setText(SCRIPT);

    final Composite composite = new Composite(tabFolder, SWT.NONE);
    composite.setLayout(new GridLayout());
    tabItemScript.setControl(composite);
    scriptForm = new ScriptForm(composite, SWT.NONE, update);
    scriptForm.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    if(listener.isExecutable()) {
      final TabItem tabItemRunExecutable  = new TabItem(tabFolder, SWT.NONE);

      tabItemRunExecutable.setText(RUN_EXECUTABLE);

      composite_1 = new Composite(tabFolder, SWT.NONE);
      composite_1.setLayout(new GridLayout());
      tabItemRunExecutable.setControl(composite_1);
      GridData gridData61 = new org.eclipse.swt.layout.GridData();
      gridData61.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
      gridData61.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
      GridData gridData41 = new org.eclipse.swt.layout.GridData();
      gridData41.grabExcessHorizontalSpace = false;
View Full Code Here


        final GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, true, 2, 1);
        tabFolder.setLayoutData(gridData);

        {
          everyDayTabItem = new TabItem(tabFolder, SWT.NONE);

          everyDayTabItem.setText(JobAssistentPeriodForms.EVERY_DAY );

          {
            final Group group = new Group(tabFolder, SWT.NONE);
            group.setLayout(new GridLayout());
            everyDayTabItem.setControl(group);
            {
              newPeriodButton = new Button(group, SWT.NONE);
              newPeriodButton.setFocus();
              newPeriodButton.addSelectionListener(new SelectionAdapter() {

                public void widgetSelected(final SelectionEvent e) {

                  Element period = periodsListener.getNewPeriod();
                  periodForm.setPeriod(period);
                  periodForm.setEnabled(true);
                  addPeriodButton.setEnabled(true);
                  bApply = JobAssistentPeriodForms.EVERY_DAY;
                }
              });
              newPeriodButton.setLayoutData(new GridData(GridData.END, GridData.CENTER, true, false));
              newPeriodButton.setText("New Period");
            }
            createPeriodForm(JobAssistentPeriodForms.EVERY_DAY, group, everyDayTabItem);
          }
        }

        {
          weekdayTabItem = new TabItem(tabFolder, SWT.NONE);

          weekdayTabItem.setText(JobAssistentPeriodForms.WEEK_DAY);

          {
            final Group group = new Group(tabFolder, SWT.NONE);
            final GridLayout gridLayout_1 = new GridLayout();
            group.setLayout(gridLayout_1);
            weekdayTabItem.setControl(group);

            {
              comboWeekDay = new Combo(group, SWT.NONE);
              comboWeekDay.setItems(DaysListener.getWeekdays());             
              createPeriodForm(JobAssistentPeriodForms.WEEK_DAY, group, weekdayTabItem);               
              comboWeekDay.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(final SelectionEvent e) {

                  discardChanges();
                  if(comboWeekDay.getText() == null || comboWeekDay.getText().length() == 0)
                    return;
                  getListener()
                  addPeriodButton.setEnabled(true);
                  bApply = JobAssistentPeriodForms.WEEK_DAY;
                }
              });
              comboWeekDay.setLayoutData(new GridData(GridData.END, GridData.CENTER, true, false));
            }
          }
        }

        {
          monthDayTabItem = new TabItem(tabFolder, SWT.NONE);
          monthDayTabItem.setText(MONTH_DAY);
          {
            final Group group = new Group(tabFolder, SWT.NONE);
            group.setLayout(new GridLayout());
            monthDayTabItem.setControl(group);
            {
              comboMonth = new Combo(group, SWT.NONE);
              comboMonth.setItems(DaysListener.getMonthdays());
              comboMonth.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(final SelectionEvent e) {
                  discardChanges();
                  if(comboMonth.getText() == null || comboMonth.getText().length() == 0)
                    return;
                  getMonthListener();
                  addPeriodButton.setEnabled(true);
                  bApply=JobAssistentPeriodForms.MONTH_DAY;
                }
              });
              comboMonth.setLayoutData(new GridData(GridData.END, GridData.BEGINNING, true, false));
            }
            createPeriodForm(JobAssistentPeriodForms.MONTH_DAY, group, monthDayTabItem);           


          }
        }

        {
          specificDayTabItem = new TabItem(tabFolder, SWT.NONE);
          specificDayTabItem.setText(SPECIFIC_DAY);
          {
            final Group group = new Group(tabFolder, SWT.NONE);
            group.setLayout(new GridLayout());
            specificDayTabItem.setControl(group);
View Full Code Here

                {
                    bindCurrentPassword();
                }
            } );

            currentTab = new TabItem( tabFolder, SWT.NONE );
            currentTab.setText( Messages.getString( "PasswordDialog.CurrentPassword" ) ); //$NON-NLS-1$
            currentTab.setControl( currentPasswordContainer );
        }

        // new password
        newPasswordContainer = new Composite( tabFolder, SWT.NONE );
        GridLayout newLayout = new GridLayout( 2, false );
        newLayout.marginHeight = convertVerticalDLUsToPixels( IDialogConstants.VERTICAL_MARGIN );
        newLayout.marginWidth = convertHorizontalDLUsToPixels( IDialogConstants.HORIZONTAL_MARGIN );
        newLayout.verticalSpacing = convertVerticalDLUsToPixels( IDialogConstants.VERTICAL_SPACING );
        newLayout.horizontalSpacing = convertHorizontalDLUsToPixels( IDialogConstants.HORIZONTAL_SPACING );
        newPasswordContainer.setLayout( newLayout );

        BaseWidgetUtils.createLabel( newPasswordContainer, Messages.getString( "PasswordDialog.EnterNewPassword" ), 1 ); //$NON-NLS-1$
        newPasswordText = BaseWidgetUtils.createText( newPasswordContainer, "", 1 ); //$NON-NLS-1$
        newPasswordText.addModifyListener( new ModifyListener()
        {
            public void modifyText( ModifyEvent e )
            {
                updateNewPasswordGroup();
            }
        } );

        BaseWidgetUtils.createLabel( newPasswordContainer, Messages.getString( "PasswordDialog.SelectHashMethod" ), 1 ); //$NON-NLS-1$
        newPasswordHashMethodCombo = BaseWidgetUtils.createReadonlyCombo( newPasswordContainer, HASH_METHODS, 0, 1 );
        newPasswordHashMethodCombo.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent event )
            {
                updateNewPasswordGroup();
            }
        } );

        BaseWidgetUtils.createLabel( newPasswordContainer, Messages.getString( "PasswordDialog.PasswordPreview" ), 1 ); //$NON-NLS-1$
        newPasswordPreviewText = BaseWidgetUtils.createReadonlyText( newPasswordContainer, "", 1 ); //$NON-NLS-1$

        newSaltButton = BaseWidgetUtils.createButton( newPasswordContainer, Messages
            .getString( "PasswordDialog.NewSalt" ), 1 ); //$NON-NLS-1$
        newSaltButton.setLayoutData( new GridData() );
        newSaltButton.setEnabled( false );
        newSaltButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent event )
            {
                updateNewPasswordGroup();
            }
        } );
        Composite newPasswordPreviewDetailContainer = BaseWidgetUtils
            .createColumnContainer( newPasswordContainer, 2, 1 );
        BaseWidgetUtils.createLabel( newPasswordPreviewDetailContainer, Messages
            .getString( "PasswordDialog.PasswordHex" ), 1 ); //$NON-NLS-1$
        newPasswordPreviewValueHexText = BaseWidgetUtils.createLabeledText( newPasswordPreviewDetailContainer, ":", 1 ); //$NON-NLS-1$
        BaseWidgetUtils.createLabel( newPasswordPreviewDetailContainer,
            Messages.getString( "PasswordDialog.SaltHex" ), 1 ); //$NON-NLS-1$
        newPasswordPreviewSaltHexText = BaseWidgetUtils.createLabeledText( newPasswordPreviewDetailContainer, "", 1 ); //$NON-NLS-1$
        showNewPasswordDetailsButton = BaseWidgetUtils.createCheckbox( newPasswordPreviewDetailContainer, Messages
            .getString( "PasswordDialog.ShowNewPasswordDetails" ), 1 ); //$NON-NLS-1$
        showNewPasswordDetailsButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent arg0 )
            {
                updateNewPasswordGroup();
            }
        } );

        newTab = new TabItem( tabFolder, SWT.NONE );
        newTab.setText( Messages.getString( "PasswordDialog.NewPassword" ) ); //$NON-NLS-1$
        newTab.setControl( newPasswordContainer );

        applyDialogFont( composite );
        return composite;
View Full Code Here

        container.setLayout(gl_container);

        tabFolder = new TabFolder(container, SWT.NONE);
        tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        tbtmResults = new TabItem(tabFolder, SWT.NONE);
        tbtmResults.setText("Results");
        tbtmResults.setControl(createResultsTabControl(tabFolder));

        tbtmErrors = new TabItem(tabFolder, SWT.NONE);
        tbtmErrors.setText("Errors");
        tbtmErrors.setControl(resolutionFailurePanel.createControl(tabFolder));

        tbtmLog = new TabItem(tabFolder, SWT.NONE);
        tbtmLog.setText("Log");
        tbtmLog.setControl(createLogTabControl(tabFolder));

        updateUi();
    }
View Full Code Here

        addInfo( connection, infoComposite, "vendorVersion", Messages.getString( "RootDSEPropertyPage.VendorVersion" ) ); //$NON-NLS-1$ //$NON-NLS-2$
        addInfo( connection, infoComposite,
            "supportedLDAPVersion", Messages.getString( "RootDSEPropertyPage.SupportedLDAPVersion" ) ); //$NON-NLS-1$ //$NON-NLS-2$
        addInfo( connection, infoComposite,
            "supportedSASLMechanisms", Messages.getString( "RootDSEPropertyPage.SupportedSASL" ) ); //$NON-NLS-1$ //$NON-NLS-2$
        infoTab = new TabItem( tabFolder, SWT.NONE );
        infoTab.setText( Messages.getString( "RootDSEPropertyPage.Info" ) ); //$NON-NLS-1$
        infoTab.setControl( infoComposite );

        // Controls tab
        Composite controlsComposite = new Composite( tabFolder, SWT.NONE );
        controlsComposite.setLayout( new GridLayout() );
        Composite controlsComposite2 = BaseWidgetUtils.createColumnContainer( controlsComposite, 2, 1 );
        addOidInfo( connection, controlsComposite2, "supportedControl" ); //$NON-NLS-1$
        controlsTab = new TabItem( tabFolder, SWT.NONE );
        controlsTab.setText( Messages.getString( "RootDSEPropertyPage.Controls" ) ); //$NON-NLS-1$
        controlsTab.setControl( controlsComposite );

        // Extensions tab
        Composite extensionComposite = new Composite( tabFolder, SWT.NONE );
        extensionComposite.setLayout( new GridLayout() );
        Composite extensionComposite2 = BaseWidgetUtils.createColumnContainer( extensionComposite, 2, 1 );
        addOidInfo( connection, extensionComposite2, "supportedExtension" ); //$NON-NLS-1$
        extensionsTab = new TabItem( tabFolder, SWT.NONE );
        extensionsTab.setText( Messages.getString( "RootDSEPropertyPage.Extensions" ) ); //$NON-NLS-1$
        extensionsTab.setControl( extensionComposite );

        // Features tab
        Composite featureComposite = new Composite( tabFolder, SWT.NONE );
        featureComposite.setLayout( new GridLayout() );
        Composite featureComposite2 = BaseWidgetUtils.createColumnContainer( featureComposite, 2, 1 );
        addOidInfo( connection, featureComposite2, "supportedFeatures" ); //$NON-NLS-1$
        featuresTab = new TabItem( tabFolder, SWT.NONE );
        featuresTab.setText( Messages.getString( "RootDSEPropertyPage.Features" ) ); //$NON-NLS-1$
        featuresTab.setControl( featureComposite );

        return tabFolder;
    }
View Full Code Here

                GridLayout gl = new GridLayout( 1, false );
                composite.setLayout( gl );

                pages[i].init( composite, this, connection.getConnectionParameter() );

                tabs[i] = new TabItem( tabFolder, SWT.NONE );
                tabs[i].setText( pages[i].getPageName() );
                tabs[i].setControl( composite );
            }

            return tabFolder;
View Full Code Here

    Widgets.onTabItem( null );
  }

  @Test
  public void testOnTabItemDoesNotCache() {
    TabItem widget = mock( TabItem.class );

    TabItemDecorator decorator1 = Widgets.onTabItem( widget );
    TabItemDecorator decorator2 = Widgets.onTabItem( widget );

    assertNotSame( decorator1, decorator2 );
View Full Code Here

          nav.navigateExternal();
        }
      }
    });

    TabItem item = new TabItem(folder, SWT.NONE);
    item.setText(Messages.COMMONTXT_ACCOUNT_INFO);
    item.setControl(composite);
  }
View Full Code Here

        Composite control = new Composite(parent, SWT.NONE);

        TabFolder folder = new TabFolder(control, SWT.TOP);

        TabItem view = new TabItem(folder, SWT.NONE);
        view.setText("Repositories");
        view.setControl(viewPage.createContents(folder));

        control.setLayout(new GridLayout(1, true));
        folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        return control;
View Full Code Here

        final Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new FillLayout(SWT.HORIZONTAL));
        final TabFolder tabFolder = new TabFolder(composite, SWT.NONE);

        // /////////////////////////////////////
        final TabItem optionsTab = new TabItem(tabFolder, SWT.NONE);
        optionsTab.setText("Options");

        prefsComposite = new Composite(tabFolder, SWT.NONE);
        optionsTab.setControl(prefsComposite);
        final GridLayout gridLayout_1 = new GridLayout();
        gridLayout_1.numColumns = 2;
        prefsComposite.setLayout(gridLayout_1);

        final Group optionsGroup = new Group(prefsComposite, SWT.NONE);
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.