Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CTabFolder


  /**
   * This method initializes group2
   */
  public void createParameterGroup() {

    tabFolder = new CTabFolder(gJobParameter, SWT.BORDER);

    final GridData gridData_2 = new GridData(GridData.FILL, GridData.FILL, true, true);
    gridData_2.heightHint = 203;
    gridData_2.widthHint = 760;
    tabFolder.setLayoutData(gridData_2);
View Full Code Here


  }

  private void createTempSchedulerDom(){
    if(schedulerDom == null)
      schedulerDom = new sos.scheduler.editor.conf.SchedulerDom();
    CTabFolder folder = new CTabFolder(parent, SWT.TOP | SWT.CLOSE );
    update = new SchedulerForm(MainWindow.getContainer(), folder, SWT.NONE);
    joblistener =  new JobListener(schedulerDom, detailListener.getParams().getParentElement(), update);
  }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void createPartControl( Composite parent )
    {
        tabFolder = new CTabFolder( parent, SWT.BOTTOM );

        ocdTab = new CTabItem( tabFolder, SWT.NONE );
        ocdTab.setText( Messages.getString( "SchemaBrowser.ObjectClasses" ) ); //$NON-NLS-1$
        ocdTab.setImage( BrowserUIPlugin.getDefault().getImage( BrowserUIConstants.IMG_OCD ) );
        ocdPage = new ObjectClassDescriptionPage( this );
View Full Code Here

    fdSeparator.top = new FormAttachment(0, -margin);
    wSeparator.setLayoutData(fdSeparator);
    props.setLook(wSeparator);

    // bottom tab folder
    wBottomFolder = new CTabFolder(wBottom, SWT.BORDER | SWT.RESIZE);
    wBottomFolder.setSimple(false);
    wBottomFolder.setUnselectedImageVisible(true);
    wBottomFolder.setUnselectedCloseVisible(false);
    wBottomFolder.setMaximizeVisible(false);
    wBottomFolder.setMinimizeVisible(false);
View Full Code Here

    topRightLayout.marginHeight = 0;
    wTopRight.setLayout(topRightLayout);
    props.setLook(wTopRight);

    // script tab folder
    wScriptsFolder = new CTabFolder(wTopRight, SWT.BORDER | SWT.RESIZE);
    wScriptsFolder.setSimple(false);
    wScriptsFolder.setUnselectedImageVisible(true);
    wScriptsFolder.setUnselectedCloseVisible(true);

    props.setLook(wScriptsFolder);
View Full Code Here

    props.setLook(wTopLeft);

    // header line

    // top left tab folder
    wLeftFolder = new CTabFolder(wTopLeft, SWT.BORDER | SWT.RESIZE);
    wLeftFolder.setSimple(false);
    wLeftFolder.setUnselectedImageVisible(true);
    wLeftFolder.setUnselectedCloseVisible(true);
    wLeftFolder.setMaximizeVisible(false);
    wLeftFolder.setMinimizeVisible(true);
View Full Code Here

    try {
      setSize(new Point(400, 300));
      setLayout(new FillLayout(SWT.HORIZONTAL));

      {
        tableFolder = new CTabFolder(this, SWT.NONE);
        tableFolder.setLayout(new FillLayout());
        {
          cTabItem1 = new CTabItem(tableFolder, SWT.NONE);
          cTabItem1.setText("Tables");
          cTabItem1.setToolTipText("Available Tables");
View Full Code Here

    public void createPartControl(Composite parent) {
        GridLayout gridLayout = new GridLayout();
        gridLayout.numColumns = 1;
        parent.setLayout(gridLayout);

        tabFolder = new CTabFolder(parent, SWT.CLOSE);
        tabFolder.setBorderVisible(true);
        GridData gridData = new GridData();
        gridData.grabExcessVerticalSpace = true;
        gridData.grabExcessHorizontalSpace = true;
        gridData.horizontalAlignment = GridData.FILL;
View Full Code Here

   */
  private CTabFolder createContainer(Composite parent) {
    // use SWT.FLAT style so that an extra 1 pixel border is not reserved
    // inside the folder
    parent.setLayout(new FillLayout());
    final CTabFolder newContainer = new CTabFolder(parent, SWT.BOTTOM
        | SWT.FLAT);
    newContainer.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        int newPageIndex = newContainer.indexOf((CTabItem) e.item);
        pageChange(newPageIndex);
      }
    });
    return newContainer;
  }
View Full Code Here

   * </p>
   *
   * @return the index of the active page, or -1 if there is no active page
   */
  protected int getActivePage() {
    CTabFolder tabFolder = getTabFolder();
    if (tabFolder != null && !tabFolder.isDisposed()) {
      return tabFolder.getSelectionIndex();
    }
    return -1;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.CTabFolder

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.