本文整理匯總了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());
}
});
}
示例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");
}
示例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;
}
示例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());
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}