本文整理了Java中org.eclipse.swt.widgets.List.getLayoutData()
方法的一些代码示例,展示了List.getLayoutData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.getLayoutData()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.List
类名称:List
方法名:getLayoutData
暂无
代码示例来源:origin: org.eclipse.xtext/ui
@Override
protected void adjustForNumColumns(int numColumns) {
Control control = getLabelControl();
((GridData) control.getLayoutData()).horizontalSpan = numColumns;
((GridData) masterList.getLayoutData()).horizontalSpan = numColumns - 1;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
@Override
protected void adjustForNumColumns(int numColumns) {
Control control = getLabelControl();
((GridData) control.getLayoutData()).horizontalSpan = numColumns;
((GridData) list.getLayoutData()).horizontalSpan = numColumns - 1;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
@Override
protected void adjustForNumColumns(int numColumns) {
Control control = getLabelControl();
((GridData) control.getLayoutData()).horizontalSpan = numColumns;
((GridData) list.getLayoutData()).horizontalSpan = numColumns - 1;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
protected void adjustForNumColumns(int numColumns) {
Control control = getLabelControl();
((GridData) control.getLayoutData()).horizontalSpan = numColumns;
((GridData) list.getLayoutData()).horizontalSpan = numColumns - 1;
}
代码示例来源:origin: eclipse/aCute
private void setTemplateViewToText(String text) {
Display.getDefault().asyncExec(() -> {
if(templateViewer.getList().getItemCount() > 1) {
((GridData) templateViewer.getList().getLayoutData()).heightHint = SWT.DEFAULT;
Shell shell = templateViewer.getControl().getShell();
shell.setSize(shell.getSize().x, shell.getSize().y - 100);
}
templateViewer.getList().removeAll();
templateViewer.add(text);
templateViewer.getControl().getParent().layout();
templateViewer.getList().setEnabled(false);
});
}
代码示例来源:origin: eclipse/aCute
templateViewer.getList().removeAll();
if (!templates.isEmpty()) {
((GridData) templateViewer.getList().getLayoutData()).heightHint = 100;
Shell shell = templateViewer.getControl().getShell();
shell.setSize(shell.getSize().x, shell.getSize().y + 100);
内容来源于网络,如有侵权,请联系作者删除!