org.eclipse.jface.window.Window.getLayout()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.eclipse.jface.window.Window.getLayout()方法的一些代码示例,展示了Window.getLayout()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.getLayout()方法的具体详情如下:
包路径:org.eclipse.jface.window.Window
类名称:Window
方法名:getLayout

Window.getLayout介绍

[英]Creates the layout for the shell. The layout created here will be attached to the composite passed into createContents. The default implementation returns a GridLayout with no margins. Subclasses that change the layout type by overriding this method should also override createContents.

A return value of null indicates that no layout should be attached to the composite. In this case, the layout may be attached within createContents.
[中]创建外壳的布局。此处创建的布局将附加到传递到createContents中的组合。默认实现返回一个没有边距的GridLayout。通过重写此方法更改布局类型的子类也应重写createContents。
返回值为null表示不应将任何布局附加到组合。在这种情况下,布局可能会附加到createContents中。

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

Layout layout = getLayout();
if (layout != null) {
  newShell.setLayout(layout);

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

Layout layout = getLayout();
if (layout != null) {
  newShell.setLayout(layout);

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

Layout layout = getLayout();
if (layout != null) {
  newShell.setLayout(layout);

相关文章