Package org.eclipse.sapphire.ui.forms

Examples of org.eclipse.sapphire.ui.forms.TabGroupPart.pages()


        final TabFolder tabFolderControl = new TabFolder( composite(), SWT.TOP );
        tabFolderControl.setLayoutData( gdhindent( gdhspan( ( part.getScaleVertically() ? gdfill() : gdhfill() ), 2 ), 9 ) );
       
        register( tabFolderControl );
       
        for( final TabGroupPagePart page : part.pages() )
        {
            final Composite tabControl = new Composite( tabFolderControl, SWT.NONE );
            tabControl.setLayout( glayout( 2, 1, 10, 10, 10 ) );

            final TabItem tab = new TabItem( tabFolderControl, SWT.NONE );
View Full Code Here


            pagesListFactory.add( presentation );
           
            presentation.render();
        }
       
        tabFolderControl.setSelection( part.pages().indexOf( part.selection() ) );
       
        tabFolderControl.addSelectionListener
        (
            new SelectionAdapter()
            {
View Full Code Here

            {
                @Override
                public void widgetSelected( final SelectionEvent event )
                {
                    final int tabGroupPageIndex = tabFolderControl.getSelectionIndex();
                    part.select( part.pages().get( tabGroupPageIndex ) );
                }
            }
        );
       
        this.pages = pagesListFactory.result();
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.