本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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});
}
示例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;
}
示例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);
}
示例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
}
示例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});
}
示例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);
}
示例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});
}
示例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));
}
示例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 });
}
示例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();
}