Package org.eclipse.sapphire.ui.forms

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


    private Listener listener;
   
    @Override
    protected void initDefaultValueService()
    {
        final SectionDef section = context( SectionDef.class );
       
        if( section.parent() != null )
        {
            final Element parent = section.parent().element();
           
            if( parent instanceof MasterDetailsContentNodeDef )
            {
                this.node = (MasterDetailsContentNodeDef) parent;
               
View Full Code Here


   
    @Override
    protected Composite renderOuterComposite( final GridData gd )
    {
        final SectionPart part = part();
        final SectionDef def = part.definition();
       
        final FormToolkit toolkit = new FormToolkit( composite().getDisplay() );
       
        final Composite outerComposite = new Composite( composite(), SWT.NONE );
        outerComposite.setLayoutData( gdhspan( ( part().getScaleVertically() ? gdfill() : gdhfill() ), 2 ) );
        outerComposite.setLayout( glayout( 1, 10, 10, 10, 20 ) );
       
        register( outerComposite );
       
        final boolean collapsible = def.getCollapsible().content();
        final int style = Section.TITLE_BAR | ( collapsible ? Section.TWISTIE : SWT.NONE );
       
        this.section = toolkit.createSection( outerComposite, style );
        this.section.setLayoutData( gdfill() );
       
View Full Code Here

TOP

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

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.