TabbedPanel component represents a panel with tabs that are used to switch between different content panels inside the TabbedPanel panel.
Note: When the currently selected tab is replaced by changing the underlying list of tabs, the change is not picked up unless a call is made to {@link #setSelectedTab(int)}.
Example:
List tabs=new ArrayList(); tabs.add(new AbstractTab(new Model<String>("first tab")) { public Panel getPanel(String panelId) { return new TabPanel1(panelId); } }); tabs.add(new AbstractTab(new Model<String>("second tab")) { public Panel getPanel(String panelId) { return new TabPanel2(panelId); } }); add(new TabbedPanel("tabs", tabs)); <span wicket:id="tabs" class="tabpanel">[tabbed panel will be here]</span>
For a complete example see the component references in wicket-examples project
@see org.apache.wicket.extensions.markup.html.tabs.ITab
@author Igor Vaynberg (ivaynberg at apache dot org)
@param < T> The type of panel to be used for this component's tabs. Just use {@link ITab} if youhave no special needs here.