本文整理了Java中org.eclipse.swt.widgets.Tree.getLayoutData()
方法的一些代码示例,展示了Tree.getLayoutData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.getLayoutData()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:getLayoutData
暂无
代码示例来源:origin: org.apache.uima/uimaj-ep-configurator
@Override
protected Control createDialogArea(Composite parent) {
Composite mainArea = (Composite) super.createDialogArea(parent);
resourcesUI = newTree(mainArea, SWT.SINGLE);
((GridData)resourcesUI.getLayoutData()).heightHint = 400;
resourcesUIc1 = new TreeColumn(resourcesUI, SWT.LEFT);
resourcesUIc2 = new TreeColumn(resourcesUI, SWT.LEFT);
setupResourcesByLocation();
return mainArea;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
final Object layoutData = tree.getLayoutData();
if (layoutData instanceof GridData) {
gridData = (GridData) layoutData;
代码示例来源:origin: org.apache.uima/uimaj-ep-configurator
@Override
public void initialize(IManagedForm form) {
super.initialize(form);
// set up Composite to hold widgets in the section
sectionClient = new2ColumnComposite(getSection());
tree = newTree(sectionClient);
// Buttons
Composite buttonContainer = newButtonContainer(sectionClient);
addButton = newPushButton(buttonContainer, S_ADD,
"Click to add a new External Resource definition");
editButton = newPushButton(buttonContainer, S_EDIT,
"Click to edit an External Resource definition");
removeButton = newPushButton(buttonContainer, "Remove",
"Click to remove selected binding or External Resource");
bindButton = newPushButton(buttonContainer, "Bind",
"Click to bind selected dependency with selected Resource");
exportButton = newPushButton(buttonContainer, S_EXPORT, S_EXPORT_TIP);
buttonContainer.pack();
getSection().getParent().getParent().pack();
getSection().getParent().getParent().layout();
initialFormWidth = getSection().getSize().x;
((GridData) tree.getLayoutData()).widthHint = initialFormWidth - buttonContainer.getSize().x;
enableBorders(sectionClient);
toolkit.paintBordersFor(sectionClient);
tree.addListener(SWT.MouseDoubleClick, this);
}
内容来源于网络,如有侵权,请联系作者删除!