windows builder里面的可伸缩面板

 

使用 org.eclipse.wb.core.controls.flyout.FlyoutControlComposite.FlyoutControlComposite类

构造方法中传入的preferences为org.eclipse.wb.core.controls.flyout.IFlyoutPreferences

具体创建方法为:

IFlyoutPreferences preferences = new MemoryFlyoutPreferences(IFlyoutPreferences.DOCK_SOUTH, IFlyoutPreferences.STATE_COLLAPSED, 400);

三个参数分别为伸缩的定位方向(上下左右),伸缩面板的状态(是否展开收缩)以及伸缩面板的宽度

主面板为flyoutControlComposite.getClientParent()

伸缩面板为flyoutControlComposite.getFlyoutParent()

就不贴代码了,试一下就知道了。

 

posted @ 2015-09-16 10:06  demonrain  阅读(230)  评论(0)    收藏  举报