/**
* Support for creating the view's window.
* <p>
* This is called by createShell(Rectangle) in most of our subclasses,
* but needs to be a static method in each of them, hence we can't use
* overriding, and instead have this as a helper to be called explicitly.
*
* @param bounds if null, use a default position, and otherwise use this as
* position and size of the window
* @param width if bounds is null, use this as the default width; otherwise
* the value of <code>width</code> is ignored
* @param height if bounds is null, use this as the default height; otherwise
* the value of <code>height</code> is ignored
* @param layout the Layout used by the window
* @return the new window
*/
protected static Shell createShell(Rectangle bounds,
int width,
int height,
Layout layout)
{
return WindowUtil.createNormalWindow(WindowUtil.GLOBAL_DISPLAY,
"",
((bounds != null)
? bounds
: new Rectangle(0,
0,
width,
height)),
(bounds != null),
layout);
}
View.java 文件源码
java
阅读 34
收藏 0
点赞 0
评论 0
项目:cogtool
作者:
评论列表
文章目录