當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。