本文整理汇总了Java中org.eclipse.swt.layout.GridData.END属性的典型用法代码示例。如果您正苦于以下问题:Java GridData.END属性的具体用法?Java GridData.END怎么用?Java GridData.END使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.swt.layout.GridData
的用法示例。
在下文中一共展示了GridData.END属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FilterAdvancedComposite
public FilterAdvancedComposite ( final FilterChangedListener filterChangedListener, final Composite parent, final int style )
{
// fields
super ( parent, style );
// widgets
this.tabFolder = new CTabFolder ( this, SWT.TOP | SWT.BORDER | SWT.CLOSE );
this.addOrConditionButton = creteAddOrConditionButton ();
addOrCondition ();
// layout
final GridLayout layout = new GridLayout ( 1, true );
layout.marginLeft = 6;
layout.marginRight = 6;
layout.marginTop = 6;
layout.marginBottom = 6;
layout.verticalSpacing = 12;
this.setLayout ( layout );
final GridData tabFolderLayoutData = new GridData ();
tabFolderLayoutData.horizontalAlignment = GridData.FILL;
tabFolderLayoutData.grabExcessHorizontalSpace = true;
tabFolderLayoutData.verticalAlignment = GridData.FILL;
tabFolderLayoutData.grabExcessVerticalSpace = true;
this.tabFolder.setLayoutData ( tabFolderLayoutData );
this.tabFolder.setBackgroundMode ( SWT.INHERIT_FORCE );
final GridData addOrConditionButtonLayoutdata = new GridData ();
addOrConditionButtonLayoutdata.horizontalAlignment = GridData.END;
this.addOrConditionButton.setLayoutData ( addOrConditionButtonLayoutdata );
}
示例2: initialize
protected void initialize() {
GridData labelData = new GridData ();
labelData.horizontalAlignment = GridData.FILL;
labelData.grabExcessHorizontalSpace = true;
Label label = new Label (this, SWT.NONE);
label.setText("You can update the version of your project before export or deployment.\n" +
"If you wish to, please change the value below :");
label.setLayoutData(labelData);
GridData textData = new GridData ();
textData.horizontalAlignment = GridData.FILL;
textData.grabExcessHorizontalSpace = true;
text = new Text (this, SWT.BORDER);
text.setText (version);
text.setLayoutData(textData);
GridData checkData = new GridData ();
checkData.horizontalAlignment = GridData.END;
checkData.grabExcessHorizontalSpace = true;
checkBoxTestCase = new Button(this, SWT.CHECK);
checkBoxTestCase.setText("Choose test cases to export");
checkBoxTestCase.setLayoutData(checkData);
GridLayout gridLayout = new GridLayout();
setLayout(gridLayout);
}