本文整理汇总了Java中org.eclipse.swt.widgets.Group.setText方法的典型用法代码示例。如果您正苦于以下问题:Java Group.setText方法的具体用法?Java Group.setText怎么用?Java Group.setText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swt.widgets.Group
的用法示例。
在下文中一共展示了Group.setText方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createGroup
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
* This method initializes group
*
*/
private void createGroup() {
GridData gridData1 = new GridData();
gridData1.horizontalAlignment = GridData.BEGINNING;
gridData1.grabExcessHorizontalSpace = true;
gridData1.verticalAlignment = GridData.CENTER;
GridData gridData = new GridData();
gridData.horizontalAlignment = GridData.FILL;
gridData.verticalAlignment = GridData.CENTER;
GridLayout gridLayout1 = new GridLayout();
gridLayout1.numColumns = 2;
GridData gridData3 = new GridData();
gridData3.horizontalAlignment = GridData.FILL;
gridData3.horizontalSpan = 2;
gridData3.grabExcessHorizontalSpace = true;
gridData3.grabExcessVerticalSpace = false;
gridData3.verticalAlignment = GridData.FILL;
group = new Group(this, SWT.NONE);
group.setText("Target Server");
group.setLayoutData(gridData3);
group.setLayout(gridLayout1);
label = new Label(group, SWT.NONE);
label.setText("HTTP Server");
httpServer = new Text(group, SWT.BORDER);
httpServer.setLayoutData(gridData);
label2 = new Label(group, SWT.NONE);
label2.setText("HTTP Port");
httpPort = new Text(group, SWT.BORDER);
httpPort.setLayoutData(gridData1);
label3 = new Label(group, SWT.NONE);
label3.setText("SSL");
ssl = new Button(group, SWT.CHECK);
httpServer.addModifyListener(modifyListener);
httpPort.addModifyListener(modifyListener);
ssl.addSelectionListener(selectionListener);
}
示例2: renderTransparency
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
private void renderTransparency(final Shell shell) {
Group group = new Group(shell, SWT.NONE);
group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 6, 1));
group.setLayout(new GridLayout(1, false));
group.setText("Transparency");
final Scale transparencySlider = new Scale(group, SWT.HORIZONTAL);
transparencySlider.setMinimum(20);
transparencySlider.setMaximum(100);
transparencySlider.setPageIncrement(90);
transparencySlider.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
transparencySlider.setSelection(100);
transparencySlider.addListener(SWT.Selection, new Listener() {
@Override
public void handleEvent(Event event) {
shell.setAlpha(255 * transparencySlider.getSelection() / 100);
}
});
}
示例3: createGroupComposite
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
protected Composite createGroupComposite(Composite parent, String title) {
Group group = new Group(parent, SWT.NONE);
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
group.setLayout(new GridLayout(3, false));
Composite composite = new Composite(group, SWT.NONE);
GridLayout gridLayout = new GridLayout(3, false);
composite.setLayout(gridLayout);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalSpan = 3;
composite.setLayoutData(gridData);
group.setText(title);
return composite;
}
示例4: createGroupDefinition
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
* This method initializes groupDefinition
*
*/
private void createGroupDefinition() {
GridData gridData = new org.eclipse.swt.layout.GridData();
gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;
gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER;
gridData.horizontalSpan = 2;
groupDefinition = new Group(this, SWT.NONE);
groupDefinition.setText("Jour(s)");
groupDefinition.setLayoutData(gridData);
// first line
checkMonday = new Button(groupDefinition, SWT.CHECK);
checkMonday.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,42,16));
checkMonday.setText("Lundi");
checkTuesday = new Button(groupDefinition, SWT.CHECK);
checkTuesday.setBounds(new org.eclipse.swt.graphics.Rectangle(54,18,42,16));
checkTuesday.setText("Mardi");
checkWednesday = new Button(groupDefinition, SWT.CHECK);
checkWednesday.setBounds(new org.eclipse.swt.graphics.Rectangle(100,18,60,16));
checkWednesday.setText("Mercredi");
checkThursday = new Button(groupDefinition, SWT.CHECK);
checkThursday.setBounds(new org.eclipse.swt.graphics.Rectangle(160,18,42,16));
checkThursday.setText("Jeudi");
checkFriday = new Button(groupDefinition, SWT.CHECK);
checkFriday.setBounds(new org.eclipse.swt.graphics.Rectangle(204,18,60,16));
checkFriday.setText("Vendredi");
checkSaturday = new Button(groupDefinition, SWT.CHECK);
checkSaturday.setBounds(new org.eclipse.swt.graphics.Rectangle(268,18,50,16));
checkSaturday.setText("Samedi");
checkSunday = new Button(groupDefinition, SWT.CHECK);
checkSunday.setBounds(new org.eclipse.swt.graphics.Rectangle(322,18,60,16));
checkSunday.setText("Dimanche");
}
示例5: createPropertiesGroup
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
*
*/
protected Composite createPropertiesGroup(Composite parent) {
Group propertiesGroup = new Group(parent, SWT.NONE);
propertiesGroup.setText(SrmMessages.GeneralPropertiesEditionPart_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;
}
示例6: 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;
}
示例7: createPropertiesGroup
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
*
*/
protected Composite createPropertiesGroup(Composite parent) {
Group propertiesGroup = new Group(parent, SWT.NONE);
propertiesGroup.setText(MetamodelMessages.CauchyPropertiesEditionPart_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: createPropertiesGroup
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
*
*/
protected Composite createPropertiesGroup(Composite parent) {
Group propertiesGroup = new Group(parent, SWT.NONE);
propertiesGroup.setText(MetamodelMessages.GammaPropertiesEditionPart_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;
}
示例9: createPropertiesGroup
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
*
*/
protected Composite createPropertiesGroup(Composite parent) {
Group propertiesGroup = new Group(parent, SWT.NONE);
propertiesGroup.setText(MetamodelMessages.UniformPropertiesEditionPart_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;
}
示例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.InputPortPropertiesEditionPart_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: createGroupPosition
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
* This method initializes groupPosition
*
*/
private void createGroupPosition() {
groupPosition = new Group(this, SWT.NONE);
groupPosition.setText("Position");
checkBoxLine = new Button(groupPosition, SWT.CHECK);
checkBoxLine.setBounds(new org.eclipse.swt.graphics.Rectangle(8,18,44,16));
checkBoxLine.setText("line");
checkBoxColumn = new Button(groupPosition, SWT.CHECK);
checkBoxColumn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,42,45,16));
checkBoxColumn.setText("column");
}
示例12: createPropertiesGroup
import org.eclipse.swt.widgets.Group; //导入方法依赖的package包/类
/**
*
*/
protected Composite createPropertiesGroup(Composite parent) {
Group propertiesGroup = new Group(parent, SWT.NONE);
propertiesGroup.setText(MetamodelMessages.StoragePropertiesEditionPart_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包/类
/**
*
*/
protected Composite createPropertiesGroup(Composite parent) {
Group propertiesGroup = new Group(parent, SWT.NONE);
propertiesGroup.setText(MetamodelMessages.WeibullPropertiesEditionPart_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.LogNormalPropertiesEditionPart_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包/类
/**
* @generated
*/
protected Composite createPropertiesGroup(Composite parent) {
Group propertiesGroup = new Group(parent, SWT.NONE);
propertiesGroup.setText(AnalysisMessages.TaskPropertiesEditionPart_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;
}