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


Java Group.setLayoutData方法代码示例

本文整理汇总了Java中org.eclipse.swt.widgets.Group.setLayoutData方法的典型用法代码示例。如果您正苦于以下问题:Java Group.setLayoutData方法的具体用法?Java Group.setLayoutData怎么用?Java Group.setLayoutData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.swt.widgets.Group的用法示例。


在下文中一共展示了Group.setLayoutData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createNameArea

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
private void createNameArea(Composite parent, String areaName, Consumer<String> textHandler) {
	final Group area = new Group(parent, SHADOW_ETCHED_IN);
	area.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());
	area.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
	area.setText(areaName);

	final Text txtPackageName = getSimpleTextArea(area);
	txtPackageName.addModifyListener(new ModifyListener() {

		@Override
		public void modifyText(ModifyEvent e) {
			Text textWidget = (Text) e.getSource();
			textHandler.accept(textWidget.getText());
		}
	});
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:17,代码来源:InstallNpmDependencyDialog.java

示例2: createGroupVisibility

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
private void createGroupVisibility() {
	GridData gridData = new org.eclipse.swt.layout.GridData();
	gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
	groupVisibility = new Group(this, SWT.NONE);
	groupVisibility.setText("Mask value in");
	groupVisibility.setLayoutData(gridData);
	
	checkboxLog = new Button(groupVisibility, SWT.CHECK);
	checkboxLog.setBounds(new org.eclipse.swt.graphics.Rectangle(12,42,200,18));
	checkboxLog.setText("log files");
	
	checkboxStudio = new Button(groupVisibility, SWT.CHECK);
	checkboxStudio.setBounds(new org.eclipse.swt.graphics.Rectangle(12,72,200,16));
	checkboxStudio.setText("studio user interface");
	
	checkboxPlatform = new Button(groupVisibility, SWT.CHECK);
	checkboxPlatform.setBounds(new org.eclipse.swt.graphics.Rectangle(12,102,200,16));
	checkboxPlatform.setText("platform user interface");
	
	checkboxXml = new Button(groupVisibility, SWT.CHECK);
	checkboxXml.setBounds(new org.eclipse.swt.graphics.Rectangle(12,132,200,16));
	checkboxXml.setText("project's XML files");
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:25,代码来源:VisibilityEditorComposite.java

示例3: createOtherPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createOtherPropertiesGroup(Composite parent) {
	Group otherPropertiesGroup = new Group(parent, SWT.NONE);
	otherPropertiesGroup.setText(GrmMessages.OtherPropertiesEditionPart_OtherPropertiesGroupLabel);
	GridData otherPropertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	otherPropertiesGroupData.horizontalSpan = 3;
	otherPropertiesGroup.setLayoutData(otherPropertiesGroupData);
	GridLayout otherPropertiesGroupLayout = new GridLayout();
	otherPropertiesGroupLayout.numColumns = 3;
	otherPropertiesGroup.setLayout(otherPropertiesGroupLayout);
	return otherPropertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:OtherPropertiesEditionPartImpl.java

示例4: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(AnalysisMessages.ResourceProtectionParameterValuePropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:ResourceProtectionParameterValuePropertiesEditionPartImpl.java

示例5: createControl

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
public void createControl(Composite parent) {
	super.createControl(parent);
	Composite composite = (Composite) getControl();
	Group group = new Group(composite, SWT.NONE);
	GridLayout layout = new GridLayout();
	layout.numColumns = 2;
	group.setLayout(layout);
	group.setText("设置");
	group.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));

	Label label = new Label(group, SWT.NULL);
	label.setText("数据库方言:");
	final Combo combo = new Combo(group, SWT.READ_ONLY);
	GridData gd = new GridData(GridData.FILL_HORIZONTAL);
	combo.setLayoutData(gd);
	DbType[] values = DbType.values();
	for (DbType type : values) {
		combo.add(type.name());
	}
	combo.select(0);
	currentDbType = combo.getText();
	setFileName("NewFile" + DEFAULT_EXTENSION);
	combo.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent e) {
			currentDbType = combo.getText();
		}
	});
	setPageComplete(validatePage());
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:30,代码来源:DbToolCreationWizardPage.java

示例6: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.BinomialPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:BinomialPropertiesEditionPartImpl.java

示例7: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.BetaPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:BetaPropertiesEditionPartImpl.java

示例8: createTimingPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createTimingPropertiesGroup(Composite parent) {
	Group timingPropertiesGroup = new Group(parent, SWT.NONE);
	timingPropertiesGroup.setText(GrmMessages.TimingPropertiesEditionPart_TimingPropertiesGroupLabel);
	GridData timingPropertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	timingPropertiesGroupData.horizontalSpan = 3;
	timingPropertiesGroup.setLayoutData(timingPropertiesGroupData);
	GridLayout timingPropertiesGroupLayout = new GridLayout();
	timingPropertiesGroupLayout.numColumns = 3;
	timingPropertiesGroup.setLayout(timingPropertiesGroupLayout);
	return timingPropertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:TimingPropertiesEditionPartImpl.java

示例9: createTimingPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createTimingPropertiesGroup(Composite parent) {
	Group timingPropertiesGroup = new Group(parent, SWT.NONE);
	timingPropertiesGroup.setText(HrmMessages.TimingPropertiesEditionPart_TimingPropertiesGroupLabel);
	GridData timingPropertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	timingPropertiesGroupData.horizontalSpan = 3;
	timingPropertiesGroup.setLayoutData(timingPropertiesGroupData);
	GridLayout timingPropertiesGroupLayout = new GridLayout();
	timingPropertiesGroupLayout.numColumns = 3;
	timingPropertiesGroup.setLayout(timingPropertiesGroupLayout);
	return timingPropertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:TimingPropertiesEditionPartImpl.java

示例10: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(AnalysisMessages.ProtectionProtocolPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:ProtectionProtocolPropertiesEditionPartImpl.java

示例11: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(AnalysisMessages.AnalyzedSystemPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:AnalyzedSystemPropertiesEditionPartImpl.java

示例12: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.QueryPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:QueryPropertiesEditionPartImpl.java

示例13: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * @generated
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(AnalysisMessages.SchedulerParameterValuePropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:SchedulerParameterValuePropertiesEditionPartImpl.java

示例14: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(MetamodelMessages.PoissonPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:PoissonPropertiesEditionPartImpl.java

示例15: createPropertiesGroup

import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
 * 
 */
protected Composite createPropertiesGroup(Composite parent) {
	Group propertiesGroup = new Group(parent, SWT.NONE);
	propertiesGroup.setText(HrmMessages.OtherPropertiesEditionPart_PropertiesGroupLabel);
	GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
	propertiesGroupData.horizontalSpan = 3;
	propertiesGroup.setLayoutData(propertiesGroupData);
	GridLayout propertiesGroupLayout = new GridLayout();
	propertiesGroupLayout.numColumns = 3;
	propertiesGroup.setLayout(propertiesGroupLayout);
	return propertiesGroup;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:OtherPropertiesEditionPartImpl.java


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