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


Java Composite.moveAbove方法代码示例

本文整理汇总了Java中org.eclipse.swt.widgets.Composite.moveAbove方法的典型用法代码示例。如果您正苦于以下问题:Java Composite.moveAbove方法的具体用法?Java Composite.moveAbove怎么用?Java Composite.moveAbove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.swt.widgets.Composite的用法示例。


在下文中一共展示了Composite.moveAbove方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createControl

import org.eclipse.swt.widgets.Composite; //导入方法依赖的package包/类
public void createControl(Composite parent) {
	Composite fileSelectionArea = new Composite(parent, SWT.NONE);
	GridData fileSelectionData = new GridData(GridData.GRAB_HORIZONTAL
			| GridData.FILL_HORIZONTAL);
	fileSelectionArea.setLayoutData(fileSelectionData);

	GridLayout fileSelectionLayout = new GridLayout();
	fileSelectionLayout.numColumns = 3;
	fileSelectionLayout.makeColumnsEqualWidth = false;
	fileSelectionLayout.marginWidth = 0;
	fileSelectionLayout.marginHeight = 0;
	fileSelectionArea.setLayout(fileSelectionLayout);
	
	editor = new ProjectFileFieldEditor("fileSelect","Select File: ",fileSelectionArea);
	editor.getTextControl(fileSelectionArea).addModifyListener(new ModifyListener(){
		public void modifyText(ModifyEvent e) {
			IPath path = new Path(ImportWizardPage.this.editor.getStringValue());
			filePath = path.toString();
			updateStatus();
		}
	});
	fileSelectionArea.moveAbove(null);
	updateStatus();
	setControl(fileSelectionArea);		
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:26,代码来源:ImportWizardPage.java

示例2: createControl

import org.eclipse.swt.widgets.Composite; //导入方法依赖的package包/类
public void createControl(Composite parent) {
	Composite fileSelectionArea = new Composite(parent, SWT.NONE);
	GridData fileSelectionData = new GridData(GridData.GRAB_HORIZONTAL
			| GridData.FILL_HORIZONTAL);
	fileSelectionArea.setLayoutData(fileSelectionData);

	GridLayout fileSelectionLayout = new GridLayout();
	fileSelectionLayout.numColumns = 3;
	fileSelectionLayout.makeColumnsEqualWidth = false;
	fileSelectionLayout.marginWidth = 0;
	fileSelectionLayout.marginHeight = 0;
	fileSelectionArea.setLayout(fileSelectionLayout);
	
	String projectName = getSelectedProject();
	projectName = (projectName == null) ? "":Engine.PROJECTS_PATH + "/" + projectName + ".car";
	editor = new ProjectFileFieldEditor("fileSelect","Select File: ",fileSelectionArea);
	editor.getTextControl(fileSelectionArea).addModifyListener(new ModifyListener(){
		public void modifyText(ModifyEvent e) {
			IPath path = new Path(ExportWizardPage.this.editor.getStringValue());
			filePath = path.toString();
			updateStatus();
		}
	});
	editor.getTextControl(fileSelectionArea).setText(projectName);
	fileSelectionArea.moveAbove(null);
	updateStatus();
	setControl(fileSelectionArea);		
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:29,代码来源:ExportWizardPage.java

示例3: createAdvancedControls

import org.eclipse.swt.widgets.Composite; //导入方法依赖的package包/类
protected void createAdvancedControls(Composite parent) {
	LOGGER.debug("Creating Import Engine XML layout");
	Composite fileSelectionArea = new Composite(parent, SWT.NONE);
	fileSelectionArea.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.FILL_HORIZONTAL));

	GridLayout fileSelectionLayout = new GridLayout();
	fileSelectionLayout.makeColumnsEqualWidth = false;
	fileSelectionLayout.marginWidth = 0;
	fileSelectionLayout.marginHeight = 0;
	fileSelectionArea.setLayout(fileSelectionLayout);

	editor = new FileFieldEditor("fileSelect", Messages.SELECT_FILE_LABEL_TEXT, fileSelectionArea);
	editor.getTextControl(fileSelectionArea).addModifyListener(new ModifyListener() {
		public void modifyText(ModifyEvent e) {
			IPath path = new Path(ImportEngineXmlWizardPage.this.editor.getStringValue());
			if (path.segment(0) != null) {
				targetxmlFilePath = editor.getStringValue();
				setFileName(path.lastSegment());
			} else {
				targetxmlFilePath = null;
				displayError();
			}
		}
	});
	String[] extensions = new String[] { ALLOWED_EXTENSIONS }; // NON-NLS-1
	editor.setFileExtensions(extensions);
	fileSelectionArea.moveAbove(null);

	Composite fileSelectionArea2 = new Composite(parent, SWT.NONE);
	fileSelectionArea2.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.FILL_HORIZONTAL));
	GridLayout fileSelectionLayout2 = new GridLayout();
	fileSelectionLayout2.numColumns = 2;

	fileSelectionLayout2.makeColumnsEqualWidth = false;
	fileSelectionLayout2.marginWidth = 0;
	fileSelectionLayout2.marginHeight = 0;
	fileSelectionArea2.setLayout(fileSelectionLayout2);
	Font fontNote = new Font(fileSelectionArea2.getDisplay(), TIMES_NEW_ROMAN_BALTIC_FONT, 9, SWT.BOLD);
	Label lblNoteHeader = new Label(fileSelectionArea2, SWT.NONE);
	lblNoteHeader.setText(Messages.NOTE_LABEL_HEADER_TEXT);
	lblNoteHeader.setFont(fontNote);
	Label lblNote = new Label(fileSelectionArea2, SWT.NONE);

	GridData gd_lblNote = new GridData(SWT.BOTTOM, SWT.CENTER, false, false, 1, 1);
	gd_lblNote.widthHint = 391;
	lblNote.setLayoutData(gd_lblNote);
	lblNote.setText(Messages.NOTE_MESSAGE_TEXT);

}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:50,代码来源:ImportEngineXmlWizardPage.java


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