Package org.eclipse.sapphire.ui.forms

Examples of org.eclipse.sapphire.ui.forms.CompositePart


        {
            part = new SplitFormSectionPart();
        }
        else if( definition instanceof CompositeDef )
        {
            part = new CompositePart();
        }
        else if( definition instanceof FormDef )
        {
            part = new FormPart();
        }
View Full Code Here


    }
   
    @Override
    public void render()
    {
        final CompositePart part = part();
        final CompositeDef def = part.definition();
       
        final boolean indent = ( def.getIndent().content() && ! ( part.parent() instanceof MasterDetailsContentNodePart ) );
       
        if( indent )
        {
            final Label label = new Label( composite(), SWT.NONE );
            label.setLayoutData( gd() );
           
            register( label );
        }

        final boolean scaleVertically = def.getScaleVertically().content();
        final int width = part.getWidth( -1 );
        final int height = part.getHeight( -1 );
       
        final Composite outerComposite = renderOuterComposite( gdwhint( gdhhint( gdhspan( ( scaleVertically ? gdfill() : gdhfill() ), ( indent ? 1 : 2 ) ), height ), width ) );
       
        render( outerComposite );
    }
View Full Code Here

        render( outerComposite );
    }
   
    protected void render( final Composite composite )
    {
        final CompositePart part = part();
        final CompositeDef def = part.definition();
       
        composite.setBackground( resources().color( part.getBackgroundColor() ) );
        composite.setBackgroundMode( SWT.INHERIT_DEFAULT );
        composite.setLayout( glayout( 1, 0, 0 ) );
       
        final boolean scrollVertically = def.getScrollVertically().content();
        final boolean scrollHorizontally = def.getScrollHorizontally().content();
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.forms.CompositePart

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.