rcp perspective 添加9个视图均匀排列

PageLayout布局方法

pageLayout.addView("NodePMTSStream" + ":1", IPageLayout.TOP, 0.5f,
editorArea);
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":2", IPageLayout.RIGHT,
0.33f, "NodePMTSStream" + ":1");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":3", IPageLayout.RIGHT,
0.5f, "NodePMTSStream" + ":2");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":4", IPageLayout.BOTTOM,
0.33f, "NodePMTSStream" + ":1");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":5", IPageLayout.BOTTOM,
0.33f, "NodePMTSStream" + ":2");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":6", IPageLayout.BOTTOM,
0.33f, "NodePMTSStream" + ":3");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":7", IPageLayout.BOTTOM,
0.5f, "NodePMTSStream" + ":4");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":8", IPageLayout.BOTTOM,
0.5f, "NodePMTSStream" + ":5");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

pageLayout.addView("NodePMTSStream" + ":9", IPageLayout.BOTTOM,
0.5f, "NodePMTSStream" + ":6");
pageLayout.getViewLayout("NodePMTSStream").setCloseable(false);

上一篇:Spring Boot使用Spring Data Redis操作Redis(单机/集群)


下一篇:[HNOI 2015]菜肴制作