开发者

Vaadin: How to identify individual tabs in a TabSheet?

开发者 https://www.devze.com 2023-03-11 08:54 出处:网络
In Vaadin, say I have a Tabsheet, with several Tabs. If I want to add subtabs to any of the开发者_StackOverflow社区 Tabs in the Tabsheet, based on which Tab the subtabs have as their \"parent\" tab ,

In Vaadin, say I have a Tabsheet, with several Tabs.

If I want to add subtabs to any of the开发者_StackOverflow社区 Tabs in the Tabsheet, based on which Tab the subtabs have as their "parent" tab , how do I do this?


Tabs are identified by the Component they hold. So, basically addanother TabSheet as a Tab to have subtabs:

TabSheet tabs = new TabSheet();
TabSheet subTabs = new TabSheet();      
tabs.addTab(subTabs, "Parent tab",null);
subTabs.addTab(new Label("Subtab content"), "Subtab",null);
0

精彩评论

暂无评论...
验证码 换一张
取 消