Tabbed Container
Tabbed Container can host widgets by tab.
Operations
With its context menu, you are able to
- Remove Tab. Remove the current tab.
- Duplicate Tab. Duplicate the current tab with its content.
- Change Tab Index. Change the position of the current tab.
- Add Tab After. Add an empty tab after the current tab.
- Add Tab Before. Add an empty tab before the current tab.
Special Properties
- Tab Count (tab_count). The number of tabbs. Change this property can add/remove tabbs.
Attention: If you remove tabbs by changing this property, the widgets on the removed tabbs cannot be recovered by Undo.
So it is recommended to remove a tab by right clicking the tab and choose "Remove Tab".
- Title (title). Title of the tab.
- Icon path (icon_path). The path of an image that is used as the icon of the tab.
See Also
Special Methods
getActiveTabIndex
public int getActiveTabIndex()
- Get the index of the active tab.
- Returns:
- the index of the active tab. Index starts from 0.
setActiveTabIndex
public void setActiveTabIndex(int index)
- Show tab in this index.
- Parameters:
index
- the index of the tab to be shown. Index starts from 0.