Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TabItem


    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);
    tbtmFind.setControl(composite);
    composite.setLayout(new GridLayout(6, true));
   
    Label lblKey = new Label(composite, SWT.NONE);
    lblKey.setText("KEY");
   
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.createPasswordText( 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

        tabFolder.setLayout( mainLayout );
        tabFolder.setLayoutData( new GridData( GridData.FILL, GridData.FILL, true, true ) );

        permanentCLComposite = new CertificateListComposite( tabFolder, SWT.NONE );
        permanentCLComposite.setInput( ConnectionCorePlugin.getDefault().getPermanentTrustStoreManager() );
        TabItem permanentTab = new TabItem( tabFolder, SWT.NONE, 0 );
        permanentTab.setText( Messages.getString( "CertificateValidationPreferencePage.PermanentTrusted" ) ); //$NON-NLS-1$
        permanentTab.setControl( permanentCLComposite );

        sessionCLComposite = new CertificateListComposite( tabFolder, SWT.NONE );
        sessionCLComposite.setInput( ConnectionCorePlugin.getDefault().getSessionTrustStoreManager() );
        TabItem sessionTab = new TabItem( tabFolder, SWT.NONE, 1 );
        sessionTab.setText( Messages.getString( "CertificateValidationPreferencePage.TemporaryTrusted" ) ); //$NON-NLS-1$
        sessionTab.setControl( sessionCLComposite );

        tabFolder.setEnabled( verifyCertificatesButton.getSelection() );
        return composite;
    }
View Full Code Here

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

        TabItem advancedTab = new TabItem(tabs, SWT.NONE);
        advancedTab.setText("Advanced");
        advancedTab.setControl(createAdvancedTab(tabs));

        setControl(tabs);

        loadFromConf();
        checkCompleted();
View Full Code Here

    pop();
  }

  @Override
  protected void doPreComposite(LObject object, LObject o) {
    TabItem item = new TabItem((TabFolder) parent, SWT.NULL);
    item.setText(o.getTitle());
    Composite c = new Composite(parent,SWT.BORDER);
    item.setControl(c);
    push(c);
    GridLayout l = new GridLayout();
    parent.setLayout(l);
    l.numColumns = 4;
  }
View Full Code Here

    pop();
  }

  @Override
  protected void doPrePage(LObject object, LObject o) {
    TabItem item = new TabItem((TabFolder) parent, SWT.NULL);
    item.setText(o.getTitle());
    Composite c = new Composite(parent,SWT.BORDER);
    item.setControl(c);
    push(c);
    GridLayout l = new GridLayout();
    parent.setLayout(l);
    l.numColumns = 4;
  }
View Full Code Here

    pop();
  }

  @Override
  protected void doPreTab(LObject object, LObject o) {
    TabItem item = new TabItem((TabFolder) parent, SWT.NULL);
    item.setText(o.getTitle());
    Composite c = new Composite(parent,SWT.BORDER);
    item.setControl(c);
    push(c);
    GridLayout l = new GridLayout();
    parent.setLayout(l);
    l.numColumns = 4;
  }
View Full Code Here

    shell.setLayout(new GridLayout(1, false));
   
    TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
    tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    TabItem tbtmServerInformation = new TabItem(tabFolder, SWT.NONE);
    tbtmServerInformation.setText(RedisClient.i18nFile.getText(I18nFile.SERVER));
   
    Composite composite = new Composite(tabFolder, SWT.NONE);
    tbtmServerInformation.setControl(composite);
    composite.setLayout(new GridLayout(2, false));
   
    Label lblName = new Label(composite, SWT.NONE);
    lblName.setText(RedisClient.i18nFile.getText(I18nFile.NAME));
   
View Full Code Here

    shell.setLayout(new GridLayout(1, false));
   
    TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
    tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
   
    TabItem tbtmServer = new TabItem(tabFolder, SWT.NONE);
    tbtmServer.setText(RedisClient.i18nFile.getText(I18nFile.GENERAL));
   
    Table tableServer = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);
    tbtmServer.setControl(tableServer);
    tableServer.setHeaderVisible(true);
    tableServer.setLinesVisible(true);
    EditListener listener = new EditListener(tableServer, false);
    tableServer.addListener(SWT.MouseDown, listener);
   
    TableColumn tblclmnKey = new TableColumn(tableServer, SWT.LEFT);
    tblclmnKey.setText(RedisClient.i18nFile.getText(I18nFile.KEY));
    tblclmnKey.setWidth(250);
   
    TableColumn tblclmnValue = new TableColumn(tableServer, SWT.LEFT);
    tblclmnValue.setWidth(442);
    tblclmnValue.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
   
    TableItem nameItem = new TableItem(tableServer, SWT.NONE);
    String[] nameKey = new String[]{RedisClient.i18nFile.getText(I18nFile.NAME), info.getName()};
    nameItem.setText(nameKey);
   
    TableItem hostItem = new TableItem(tableServer, SWT.NONE);
    String[] hostKey = new String[]{RedisClient.i18nFile.getText(I18nFile.HOST), info.getHost()};
    hostItem.setText(hostKey);
   
    TableItem portItem = new TableItem(tableServer, SWT.NONE);
    String[] portKey = new String[]{RedisClient.i18nFile.getText(I18nFile.PORT), info.getPort()};
    portItem.setText(portKey);
   
    Set<Entry<String, String[]>> set = values.entrySet();
    Iterator<Entry<String, String[]>> i = set.iterator();
   
    while(i.hasNext()) {
      Map.Entry<String, String[]> entry = (Map.Entry<String, String[]>) i.next();
      TabItem tbtmServerInformation = new TabItem(tabFolder, SWT.NONE);
      tbtmServerInformation.setText(entry.getKey());
      Table table = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);
      tbtmServerInformation.setControl(table);
      table.setHeaderVisible(true);
      table.setLinesVisible(true);
      EditListener listener1 = new EditListener(table, false);
      table.addListener(SWT.MouseDown, listener1);
     
View Full Code Here

    shell.setLayout(new GridLayout(1, false));
   
    TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
    tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
   
    TabItem tbtmString = new TabItem(tabFolder, SWT.NONE);
    tbtmString.setText(RedisClient.i18nFile.getText(I18nFile.FAVORITE));
   
    Composite composite = new Composite(tabFolder, SWT.NONE);
    tbtmString.setControl(composite);
    composite.setLayout(new GridLayout(2, false));
   
    Label lblNewKey = new Label(composite, SWT.NONE);
    lblNewKey.setText(RedisClient.i18nFile.getText(I18nFile.NAME));
   
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.