Eclipse常见界面

Section的创建

 

 

Section inputSection = new Section(topComp, Section.TWISTIE | Section.EXPANDED);

inputSection.setText("流程输入");

GridData gd = new GridData(GridData.FILL_BOTH);

gd.grabExcessVerticalSpace = true;

gd.minimumHeight = 200;

inputSection.setLayoutData(gd);

inputSection.setClient(createInputSection(inputSection));  //创建具体内容

staticSection.addExpansionListener(new IExpansionListener())  

 

http://yiliner.iteye.com/blog/206076

 

Layout:

StackLayout

.topControl = "";

XXX.layout()

 

GridLayout下设置Label的位置为左上角

为该Label设置GridData

gd.verticalAlignment = SWT.TOP | SWT.BEGINNING

 

你可能感兴趣的:(eclipse,Blog)