[英]How to Dock object to parent Window in Java + swt?
I'm trying to make "Fluid" layout for Table -view (List view with sortable columns). 我正在尝试为Table -view(具有可排序列的List视图)制作“流体”布局。 But I'm only able to set Fixed width and height. 但是我只能设置固定的宽度和高度。
Like in C#, I'm able to define: table.Dock = Dock.Fill; 像在C#中一样,我能够定义:table.Dock = Dock.Fill;
Does such Behavior exist in Java? Java中是否存在这样的行为? I'd want the table to "Dock" into parent window. 我希望表格“停靠”到父窗口中。
Or do I have to make method that loops through all available object on "Window resize" -event and calculate desired width and height? 还是我必须使方法遍历“窗口调整大小” -event上的所有可用对象并计算所需的宽度和高度?
Thanks. 谢谢。
You may need to use Eclipse RPC and build on top of ViewPart
class. 您可能需要使用Eclipse RPC并在ViewPart
类之上构建。 Also look at Nebula project. 还要看星云项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.