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