当前位置: 首页>>代码示例>>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;未经允许,请勿转载。