开发者

Vaadin: How to identify individual tabs in a TabSheet?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜