Composite groovy

Since version 0.9.10 there was an opportunity to make composit groovy document.

The example of Sash form consists from 3 parts

SashFormDemo.png.

In confex tree its looks like...
SashFormDemo.png.
header
import groovy.swt.SwtBuilder
import org.eclipse.swt.layout.FormAttachment
import org.eclipse.swt.graphics.Rectangle

builder = new SwtBuilder()
        
shell = builder.shell ( text:'The SashForm Demo', location:[100,100], size:[500,400] )  {
    	fillLayout()
        
	sashForm1 = sashForm( style:"horizontal" )  {
		fillLayout()


footer
} //-- end sashForm1
sashForm1.weights = [10,40,30]
}	//-- end shell

shell.open()
	
while(! shell.isDisposed()) { 
	if (! shell.display.readAndDispatch()) {
		shell.display.sleep();
	}
}


The dynamic builded content
composite( style:"none" ) {

   fillLayout()

   label( text:"Label in pane 1" )

}

composite( style:"none" ) {

   fillLayout()

   button( text:"Button in pane2", style:"push" )

}

composite( style:"none" ) {

   fillLayout()

   label( text:"Label in pane3" )

}


Confex source: http://confex.sourceforge.net/confex/complex_sash_form.confex You may open it with confex 0.9.10 and older.

The example of Tab Form

SashFormDemo.png.

In confex tree its looks like...
SashFormDemo.png.

You may exclude some internal parts, just set up "Not used" property.
SashFormDemo.png.

In confex tree its looks like...
SashFormDemo.png.
Confex source: http://confex.sourceforge.net/confex/complex_tab_form.confex You may open it with confex 0.9.10 and older.