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


Java SashForm.setLayoutData方法代碼示例

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


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

示例1: createDialogArea

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
/**
 * Create contents of the dialog.
 * 
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
	container = (Composite) super.createDialogArea(parent);
	container.setLayout(new GridLayout(3, false));
	container.getShell().setText(Messages.TRANSFORM_EDITOR);
	propertyDialogButtonBar = new PropertyDialogButtonBar(container);
	mainSashForm = new SashForm(container, SWT.SMOOTH);
	mainSashForm.setSashWidth(5);
	mainSashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 0, 0));
	createInputFieldTable(mainSashForm);
       createOperationClassGrid(mainSashForm);
	createOutputFieldTable(mainSashForm);
	if(OSValidator.isMac()){
		mainSashForm.setWeights(new int[] {54, 242, 120});
	}else{
		mainSashForm.setWeights(new int[] {67, 242, 107});
	}
	Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	final Point newSize = container.getShell().computeSize(screenSize.width/2, screenSize.height/2, true);
	getShell().setMinimumSize(newSize);
	return mainSashForm;
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:28,代碼來源:TransformDialog.java

示例2: createContents

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
@Override
protected Control createContents(Composite parent) {
	ResourcesPlugin.getWorkspace().getRoot().getProject(ExpressionEditorUtil.INSTANCE.lastString(getTitle(), Constants.SPACE));
	noDefaultAndApplyButton();
	Composite container = parent;
	container.setLayout(new GridLayout(1, false));
	this.getShell().setText(DIALOG_TITLE);
	Composite mainComposite = new Composite(container, SWT.BORDER);
	mainComposite.setLayout(new GridLayout(1, false));
	mainComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	SashForm sashForm = new SashForm(mainComposite, SWT.NONE);
	sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	
	categoriesDialogSourceComposite=new CategoriesDialogSourceComposite(sashForm, this, SWT.NONE);
	categoriesDialogTargetComposite=new CategoriesDialogTargetComposite(sashForm, categoriesDialogSourceComposite, SWT.NONE);
	
	sashForm.setWeights(new int[] {1, 1});

	return container;
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:23,代碼來源:AddExternalJarPage.java

示例3: createDialogArea

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
/**
 * Create contents of the dialog.
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
	Composite container = (Composite) super.createDialogArea(parent);
	container.setLayout(new GridLayout(1, false));
	this.getShell().setText(DIALOG_TITLE);
	Composite mainComposite = new Composite(container, SWT.BORDER);
	mainComposite.setLayout(new GridLayout(1, false));
	mainComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	SashForm sashForm = new SashForm(mainComposite, SWT.NONE);
	sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	
	categoriesDialogSourceComposite=new CategoriesDialogSourceComposite(sashForm,null, SWT.NONE);
	categoriesDialogTargetComposite=new CategoriesDialogTargetComposite(sashForm,categoriesDialogSourceComposite, SWT.NONE);
	
	sashForm.setWeights(new int[] {1, 1});

	return container;
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:25,代碼來源:AddCategoreisDialog.java

示例4: createDialogArea

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
/**
 * Create contents of the dialog.
 * 
 * @param parent
 */
@Override
protected Control createDialogArea(Composite parent) {
	Composite container = (Composite) super.createDialogArea(parent);
	container.setLayout(new GridLayout(1, false));
	container.getShell().setText(DIALOG_TITLE);
	
	SashForm composite = new SashForm(container, SWT.SMOOTH);
	composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	createInputFieldExpandBarSection(composite);

	creatFieldMappingSection(composite);

	createCopyInputToOutputFieldSection(composite);
	composite.setWeights(new int[] {215, 559, 116});

	populateJoinMapDialog();
	
	return container;
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:26,代碼來源:JoinMapDialog.java

示例5: createContent

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
private void createContent() {
    toolBar = new ToolBar(this, SWT.HORIZONTAL);
    GridData layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    SashForm sashForm = new SashForm(this, SWT.HORIZONTAL);
    sashForm.SASH_WIDTH = 2;
    sashForm.setLayoutData(layoutData);
    sashForm.setLayout(layout);

    createLeftPanel(sashForm);
    createRightPanel(sashForm);

    sashForm.setSashWidth(2);
    sashForm.setWeights(new int[] {15, 85});
}
 
開發者ID:technology16,項目名稱:pgsqlblocks,代碼行數:18,代碼來源:ProcessesView.java

示例6: createDialogArea

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
@Override
protected Control createDialogArea(Composite parent) {
	Composite cont = (Composite) super.createDialogArea(parent);
	
	SashForm sash = new SashForm(cont, SWT.HORIZONTAL);
	sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	sash.setLayout(new GridLayout(2, false));
	
	htrModelsComp = new HtrModelsComposite(sash, 0);
	htrModelsComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	Group dictGrp = new Group(sash, SWT.NONE);
	dictGrp.setLayout(new GridLayout(1, false));
	dictGrp.setText("Dictionary");
	
	htrDictComp = new HtrDictionaryComposite(dictGrp, 0);
	htrDictComp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

	applyConfig();

	sash.setWeights(new int[] { 80, 20 });

	return cont;
}
 
開發者ID:Transkribus,項目名稱:TranskribusSwtGui,代碼行數:25,代碼來源:HtrTextRecognitionConfigDialog.java

示例7: initFacetSf

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
private void initFacetSf(Group resultsGroup) {
	int noOfFacets = 4;
	SashForm facetSf = new SashForm(resultsGroup, SWT.HORIZONTAL);
	facetSf.setLayout(new GridLayout(1, false));
	facetSf.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, noOfFacets, 1));
			
       int[] selection = new int[] { 0 };
       
       noMultiCombos = true;
       
       String[] startItems = new String[] { "All collections" };
       collCombo = new MultiSelectionCombo(facetSf, startItems, selection, SWT.NONE, this);
       startItems = new String[] { "All documents" };
       docCombo = new MultiSelectionCombo(facetSf, startItems, selection, SWT.NONE, this);
       startItems = new String[] { "All authors" };
       authCombo = new MultiSelectionCombo(facetSf, startItems, selection, SWT.NONE, this);
       startItems = new String[] { "All uploaders" };
       uplCombo = new MultiSelectionCombo(facetSf, startItems, selection, SWT.NONE, this);
	
}
 
開發者ID:Transkribus,項目名稱:TranskribusSwtGui,代碼行數:21,代碼來源:FullTextSearchComposite.java

示例8: postConstruct

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
@PostConstruct
public void postConstruct(Composite parent) {
	this.parent = parent;
	GridLayout gl_parent = new GridLayout(1, false);
	gl_parent.horizontalSpacing = 0;
	gl_parent.verticalSpacing = 0;
	gl_parent.marginHeight = 0;
	parent.setLayout(gl_parent);
	
	SashForm sashForm = new SashForm(parent, SWT.NONE);
	sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
	
	leftComposite = new Composite(sashForm, SWT.NONE);
	
	rightComposite = new Composite(sashForm, SWT.NONE);
	sashForm.setWeights(new int[] {1, 1});
	//TODO Your code here
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:19,代碼來源:CompareViewerGeneralImpl.java

示例9: createCompositeContent

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
@Override
protected void createCompositeContent() {
	// Create the editor content
	GridLayout cmpGl=new GridLayout(1,true);
	cmpGl.marginWidth=0;
	cmpGl.marginHeight=0;
	setLayout(cmpGl);
	
	Label title = new Label(this,SWT.NONE);
	title.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false));
	title.setText(getTitle());
	
	SashForm sashForm = new SashForm(this, SWT.NONE);
	sashForm.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));

	createTreeViewer(sashForm);
	createQueryTextArea(sashForm);
	
	qStatus=new QueryStatus(this);
	
	// Standard proportions
	sashForm.setWeights(new int[] {30, 70});
	
	refreshTreeViewerContent(getDataAdapterDescriptor());
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:26,代碼來源:ATreeWizardDataEditorComposite.java

示例10: createModuleLocationFormInput

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
private void createModuleLocationFormInput(Composite container) {
	Label infPathLabel = new Label(container, SWT.NULL);
	infPathLabel.setText("Enter the module's .inf location:");
	
	SashForm form = new SashForm(container, SWT.HORIZONTAL | SWT.NULL);
	form.setLayout(new GridLayout(1, false));
	form.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
	form.setSashWidth(0);
	
	Composite infLocationPathContainer = new Composite(form, SWT.NULL);
	infLocationPathContainer.setLayout(new GridLayout(1, false));
	infLocationPathContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
	infLocationPath = new Text(infLocationPathContainer, SWT.BOLD | SWT.BORDER);
	infLocationPath.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
	
	Composite infBrowserBtnContainer = new Composite(form, SWT.NULL);
	infBrowserBtnContainer.setLayout(new GridLayout(1, false));
	infBrowserBtnContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
	infBrowserBtn = new Button(infBrowserBtnContainer, SWT.PUSH);
	infBrowserBtn.setText("Browse");
	infBrowserBtn.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
	
	form.setWeights(new int[]{7, 1});
}
 
開發者ID:ffmmjj,項目名稱:uefi_edk2_wizards_plugin,代碼行數:25,代碼來源:ExistingModuleWizardPage.java

示例11: MainWindow

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
public MainWindow(Composite c) {
    super(c, SWT.NONE);
    initLayoutFillMax();
    SashForm main = new SashForm(this, SWT.VERTICAL);
    main.setLayout(new GridLayout(1, true));
    main.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    createTop(main);
    createBottom(main);
    // top a little bigger than the bottom..
    int weights[] = {60, 40};
    main.setWeights(weights);

}
 
開發者ID:openaudible,項目名稱:openaudible,代碼行數:14,代碼來源:MainWindow.java

示例12: createTreesSashForm

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
private void createTreesSashForm() {
	GridData gd = new org.eclipse.swt.layout.GridData();
	gd.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gd.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gd.grabExcessHorizontalSpace = true;
	gd.grabExcessVerticalSpace = true;
	treesSashForm = new SashForm(sashForm, SWT.NONE);
	treesSashForm.setOrientation(SWT.HORIZONTAL );
	treesSashForm.setLayoutData(gd);
	createSequenceTree();
	sourcePicker.createXhtmlTree(treesSashForm);
	treesSashForm.setWeights(new int[]{40,60});
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:14,代碼來源:StepSourceEditorComposite.java

示例13: createXpathSashForm

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
private void createXpathSashForm() {
	GridData gd = new org.eclipse.swt.layout.GridData();
	gd.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gd.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gd.grabExcessHorizontalSpace = true;
	gd.grabExcessVerticalSpace = true;
	xpathSashForm = new SashForm(sashForm, SWT.NONE);
	xpathSashForm.setOrientation(SWT.HORIZONTAL );
	xpathSashForm.setLayoutData(gd);
	
	sourcePicker.createXPathEvaluator(new StepXpathEvaluatorComposite(xpathSashForm, SWT.NONE, sourcePicker));
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:13,代碼來源:StepSourceEditorComposite.java

示例14: createTableComposite

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
private void createTableComposite(Composite main_composite) {
	Composite tableComposite = new Composite(main_composite, SWT.NONE);
	tableComposite.setLayout(new GridLayout(1, false));
	tableComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	SashForm sashForm = new SashForm(tableComposite, SWT.NONE);
	sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

	createSourceTable(sashForm);

	createTragetTable(sashForm);
	sashForm.setWeights(new int[] { 189, 385 });
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:14,代碼來源:ExcelFormattingDialog.java

示例15: createXpathSashForm

import org.eclipse.swt.custom.SashForm; //導入方法依賴的package包/類
private void createXpathSashForm() {
	GridData gd = new org.eclipse.swt.layout.GridData();
	gd.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gd.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;
	gd.grabExcessHorizontalSpace = true;
	gd.grabExcessVerticalSpace = true;
	xpathSashForm = new SashForm(mainSashForm, SWT.NONE);
	xpathSashForm.setOrientation(SWT.HORIZONTAL );
	xpathSashForm.setLayoutData(gd);
	createXPathEvaluator();
}
 
開發者ID:convertigo,項目名稱:convertigo-eclipse,代碼行數:12,代碼來源:SourcePickerView.java


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