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);
精彩评论