當前位置: 首頁>>代碼示例>>Java>>正文


Java Composite.setBounds方法代碼示例

本文整理匯總了Java中org.eclipse.swt.widgets.Composite.setBounds方法的典型用法代碼示例。如果您正苦於以下問題:Java Composite.setBounds方法的具體用法?Java Composite.setBounds怎麽用?Java Composite.setBounds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.swt.widgets.Composite的用法示例。


在下文中一共展示了Composite.setBounds方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: creatFieldMappingSection

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
private void creatFieldMappingSection(Composite composite) {

		Composite composite_2 = new Composite(composite, SWT.NONE);
		GridLayout gl_composite_2 = new GridLayout(1, false);
		gl_composite_2.verticalSpacing = 0;
		gl_composite_2.marginWidth = 0;
		gl_composite_2.marginHeight = 0;
		gl_composite_2.horizontalSpacing = 0;
		composite_2.setLayout(gl_composite_2);
		composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true,
				1, 1));
		composite_2.setBounds(0, 0, 64, 64);

		createButtonSectionInFieldMappingSection(composite_2);

		createMappingTableInFieldMappingSection(composite_2);
	}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:18,代碼來源:JoinMapDialog.java

示例2: creatFieldMappingSection

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
private void creatFieldMappingSection(Composite composite) {

		Composite mappingComposite = new Composite(composite, SWT.NONE);
		GridLayout gl_mappingComposite = new GridLayout(1, false);
		gl_mappingComposite.verticalSpacing = 0;
		gl_mappingComposite.marginWidth = 0;
		gl_mappingComposite.marginHeight = 0;
		gl_mappingComposite.horizontalSpacing = 0;
		mappingComposite.setLayout(gl_mappingComposite);
		mappingComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true,
				1, 1));
		mappingComposite.setBounds(0, 0, 64, 64);

		createButtonSectionInFieldMappingSection(mappingComposite);

		createMappingTableInFieldMappingSection(mappingComposite);
	}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:18,代碼來源:LookupMapDialog.java

示例3: createCompositeIntense

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
/**
 * This method initializes compositeIntense	
 *
 */
private void createCompositeIntense() {
	compositeIntense = new Composite(groupDecoration, SWT.NONE);
	compositeIntense.setBounds(new org.eclipse.swt.graphics.Rectangle(5,14,231,21));
	radioButtonIntenseOn = new Button(compositeIntense, SWT.RADIO);
	radioButtonIntenseOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,59,16));
	radioButtonIntenseOn.setText("bold");
	radioButtonIntenseOff = new Button(compositeIntense, SWT.RADIO);
	radioButtonIntenseOff.setBounds(new org.eclipse.swt.graphics.Rectangle(85,4,56,16));
	radioButtonIntenseOff.setText("normal");
	radioButtonIntenseDontCare = new Button(compositeIntense, SWT.RADIO);
	radioButtonIntenseDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
	radioButtonIntenseDontCare.setText("don't care");
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:18,代碼來源:JavelinAttributeEditorComposite.java

示例4: createCompositeReverse

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
/**
 * This method initializes compositeReverse	
 *
 */
private void createCompositeReverse() {
	compositeReverse = new Composite(groupDecoration, SWT.NONE);
	compositeReverse.setBounds(new org.eclipse.swt.graphics.Rectangle(5,36,231,21));
	radioButtonReverseOn = new Button(compositeReverse, SWT.RADIO);
	radioButtonReverseOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,59,16));
	radioButtonReverseOn.setText("reverse");
	radioButtonReverseOff = new Button(compositeReverse, SWT.RADIO);
	radioButtonReverseOff.setBounds(new org.eclipse.swt.graphics.Rectangle(85,4,56,16));
	radioButtonReverseOff.setText("normal");
	radioButtonReverseDontCare = new Button(compositeReverse, SWT.RADIO);
	radioButtonReverseDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
	radioButtonReverseDontCare.setText("don't care");
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:18,代碼來源:JavelinAttributeEditorComposite.java

示例5: createCompositeUnderline

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
/**
 * This method initializes compositeUnderline	
 *
 */
private void createCompositeUnderline() {
	compositeUnderlined = new Composite(groupDecoration, SWT.NONE);
	compositeUnderlined.setBounds(new org.eclipse.swt.graphics.Rectangle(5,59,231,21));
	radioButtonUnderlinedOn = new Button(compositeUnderlined, SWT.RADIO);
	radioButtonUnderlinedOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,71,16));
	radioButtonUnderlinedOn.setText("underlined");
	radioButtonUnderlinedOff = new Button(compositeUnderlined, SWT.RADIO);
	radioButtonUnderlinedOff.setBounds(new org.eclipse.swt.graphics.Rectangle(86,4,54,16));
	radioButtonUnderlinedOff.setText("normal");
	radioButtonUnderlinedDontCare = new Button(compositeUnderlined, SWT.RADIO);
	radioButtonUnderlinedDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
	radioButtonUnderlinedDontCare.setText("don't care");
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:18,代碼來源:JavelinAttributeEditorComposite.java

示例6: createCompositeBlink

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
/**
 * This method initializes compositeBlink	
 *
 */
private void createCompositeBlink() {
	compositeBlink = new Composite(groupDecoration, SWT.NONE);
	compositeBlink.setBounds(new org.eclipse.swt.graphics.Rectangle(5,82,231,21));
	radioButtonBlinkOn = new Button(compositeBlink, SWT.RADIO);
	radioButtonBlinkOn.setBounds(new org.eclipse.swt.graphics.Rectangle(8,4,43,16));
	radioButtonBlinkOn.setText("blink");
	radioButtonBlinkOff = new Button(compositeBlink, SWT.RADIO);
	radioButtonBlinkOff.setBounds(new org.eclipse.swt.graphics.Rectangle(86,4,57,16));
	radioButtonBlinkOff.setText("normal");
	radioButtonBlinkDontCare = new Button(compositeBlink, SWT.RADIO);
	radioButtonBlinkDontCare.setBounds(new org.eclipse.swt.graphics.Rectangle(157,4,68,16));
	radioButtonBlinkDontCare.setText("don't care");
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:18,代碼來源:JavelinAttributeEditorComposite.java

示例7: createInputFieldSection

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
private void createInputFieldSection(Composite composite) {
	
	Composite inputComposite = new Composite(composite, SWT.NONE);
	GridLayout gl_inputComposite = new GridLayout(1, false);
	gl_inputComposite.horizontalSpacing = 0;
	gl_inputComposite.verticalSpacing = 0;
	gl_inputComposite.marginWidth = 0;
	gl_inputComposite.marginHeight = 0;
	inputComposite.setLayout(gl_inputComposite);
	GridData gd_inputComposite = new GridData(SWT.FILL, SWT.FILL, false, true,
			1, 1);
	gd_inputComposite.widthHint = 269;
	inputComposite.setLayoutData(gd_inputComposite);
	inputComposite.setBounds(0, 0, 64, 64);

	ScrolledComposite inputScrolledComposite = new ScrolledComposite(
			inputComposite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
	inputScrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
			true, true, 1, 1));
	inputScrolledComposite.setExpandHorizontal(true);
	inputScrolledComposite.setExpandVertical(true);

	final SashForm inputComposite2 = new SashForm(inputScrolledComposite, SWT.VERTICAL);
	inputComposite2.addControlListener(new ControlAdapter() {
		@Override
		public void controlResized(ControlEvent e) {
			in0Table.getColumn(0).setWidth(inputComposite2.getSize().x-5);
			in1Table.getColumn(0).setWidth(inputComposite2.getSize().x-5);
		}
	});
	inputComposite2.setLayout(new GridLayout(1, false));
	
	addIn0InputFields(inputComposite2);
	
	addIn1InputFields(inputComposite2);

	inputScrolledComposite.setContent(inputComposite2);
	inputScrolledComposite.setMinSize(inputComposite2.computeSize(SWT.DEFAULT,
			SWT.DEFAULT));
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:41,代碼來源:LookupMapDialog.java

示例8: createInputFieldExpandBarSection

import org.eclipse.swt.widgets.Composite; //導入方法依賴的package包/類
private void createInputFieldExpandBarSection(Composite composite) {
	Composite composite_1 = new Composite(composite, SWT.NONE);
	GridLayout gl_composite_1 = new GridLayout(1, false);
	gl_composite_1.horizontalSpacing = 0;
	gl_composite_1.verticalSpacing = 0;
	gl_composite_1.marginWidth = 0;
	gl_composite_1.marginHeight = 0;
	composite_1.setLayout(gl_composite_1);
	GridData gd_composite_1 = new GridData(SWT.FILL, SWT.FILL, false, true,
			1, 1);
	gd_composite_1.widthHint = 276;
	composite_1.setLayoutData(gd_composite_1);
	composite_1.setBounds(0, 0, 64, 64);

	final ScrolledComposite scrolledComposite_1 = new ScrolledComposite(
			composite_1, SWT.BORDER | SWT.V_SCROLL );
	scrolledComposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
			true, true, 1, 1));
	scrolledComposite_1.setExpandHorizontal(true);
	scrolledComposite_1.setExpandVertical(true);
	
	Composite composite_7 = new Composite(scrolledComposite_1, SWT.NONE);
	composite_7.setLayout(new GridLayout(1, false));

	final ExpandBar expandBar = new ExpandBar(composite_7, SWT.H_SCROLL);
	expandBar.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1,
			1));
	
	expandBar.setBackground(CustomColorRegistry.INSTANCE.getColorFromRegistry( 240, 240, 240));
	populateInputFieldExpandBarSection(expandBar);

	expandBar.getItem(0).setExpanded(true);

	scrolledComposite_1.setContent(composite_7);
	scrolledComposite_1.setMinSize(composite_7.computeSize(SWT.DEFAULT,
			SWT.DEFAULT));
	
	
	composite_7.addControlListener(new ControlAdapter() {
		@Override
		public void controlResized(ControlEvent e) {
			
			for(ExpandItem expandItem:expandBar.getItems()){
				((TableColumn)expandItem.getData("TableColumn")).setWidth(scrolledComposite_1.getSize().x);
			}
		}
	});
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:49,代碼來源:JoinMapDialog.java


注:本文中的org.eclipse.swt.widgets.Composite.setBounds方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。