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


Java Group.setText方法代码示例

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

示例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);
		}
	});
}
 
开发者ID:juanerasmoe,项目名称:pmTrans,代码行数:20,代码来源:FindReplaceDialog.java

示例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;
}
 
开发者ID:Yakindu,项目名称:solidity-ide,代码行数:15,代码来源:SolidityCompilerPreferencePage.java

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

示例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;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:GeneralPropertiesEditionPartImpl.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.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

示例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;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:CauchyPropertiesEditionPartImpl.java

示例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;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:GammaPropertiesEditionPartImpl.java

示例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;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:UniformPropertiesEditionPartImpl.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.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;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:InputPortPropertiesEditionPartImpl.java

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

示例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;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:WeibullPropertiesEditionPartImpl.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.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;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:LogNormalPropertiesEditionPartImpl.java

示例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;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:TaskPropertiesEditionPartImpl.java


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