Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CTabFolder.indexOf()


    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


    private CTabFolder _createContainer(Composite parent) {
        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);
                if (newPageIndex == 1) {
                    _update();
                }
            }
        });
View Full Code Here

    CTabItem item = (CTabItem )refView.getData(ITEM);
    int count = folder.getItemCount();
    int index = -1;
   
    if (item != null) {
      index = folder.indexOf(item);
    }
   
    if (index < 0) {
      index = count;
    }
View Full Code Here

   
    int count = folder.getItemCount();
    int index = -1;
   
    if (item != null) {
      index = folder.indexOf(item);
    }
   
    if (index < 0) {
      index = count;
    }
View Full Code Here

   
    if (folder == null) {
      return -1;
    }
   
    int index = folder.indexOf(item);
   
    if (vs.getPosition() == TAB_AFTER) {
      index++;
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.