在折叠式布局中添加边框布局

发布于 2024-11-03 12:48:34 字数 120 浏览 3 评论 0原文

我们可以将具有边框布局的内容面板添加到具有手风琴布局的面板吗?我们正在尝试将中央面板和西部面板放在一个面板上,该面板在手风琴视图中显示。但无法做到这一点,因为数据没有显示 kinldy 请求建议。

问候 萨蒂什

Can we add a content panel having border layout to a panle that is having an Accordion Layout. we are trying to put our central panle as well as west panel on a panle which displays this in accordion view. But not able to do this as the data is not displaying kinldy request to suggest.

Regards
Satish

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁虫ゝ 2024-11-10 12:48:34

你是说这个吗?

public class test extends Composite {
    private ContentPanel accordionPanel;
    private ContentPanel borderPanel;
    private ContentPanel westPanel;
    private ContentPanel centerPanel;

    public test() {

        accordionPanel = new ContentPanel();
        accordionPanel.setLayout(new AccordionLayout());

        borderPanel = new ContentPanel();
        borderPanel.setLayout(new BorderLayout());

        westPanel = new ContentPanel();
        borderPanel.add(westPanel, new BorderLayoutData(LayoutRegion.WEST));

        centerPanel = new ContentPanel();
        borderPanel.add(centerPanel, new BorderLayoutData(LayoutRegion.CENTER));
        accordionPanel.add(borderPanel);
        initComponent(accordionPanel);
    }

}

You mean this?

public class test extends Composite {
    private ContentPanel accordionPanel;
    private ContentPanel borderPanel;
    private ContentPanel westPanel;
    private ContentPanel centerPanel;

    public test() {

        accordionPanel = new ContentPanel();
        accordionPanel.setLayout(new AccordionLayout());

        borderPanel = new ContentPanel();
        borderPanel.setLayout(new BorderLayout());

        westPanel = new ContentPanel();
        borderPanel.add(westPanel, new BorderLayoutData(LayoutRegion.WEST));

        centerPanel = new ContentPanel();
        borderPanel.add(centerPanel, new BorderLayoutData(LayoutRegion.CENTER));
        accordionPanel.add(borderPanel);
        initComponent(accordionPanel);
    }

}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文