当前位置: 首页>>代码示例>>Java>>正文


Java GridData.END属性代码示例

本文整理汇总了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 );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:31,代码来源:FilterAdvancedComposite.java

示例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);
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:29,代码来源:ProjectVersionUpdateDialogComposite.java


注:本文中的org.eclipse.swt.layout.GridData.END属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。