Interface TabContainerHandler
-
- All Known Implementing Classes:
DelegateTabContainerHandler
public interface TabContainerHandlerCreated on 11/25/13.- Since:
- 2.8
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TabHandlergetTabHandler(int index)Returns the tab handler of the tab i.JTabbedPanegetTabPanel()voidinit()booleanonTabChanged(int currentIndex, int newIndex)Method called when the user selects a tab.booleanremoveTab(int i)Removes the tab ivoidsetCustomTab(int index, TabContentModel model)Sets aCustomTabas tab component.
-
-
-
Method Detail
-
getTabPanel
JTabbedPane getTabPanel()
-
init
void init()
-
onTabChanged
boolean onTabChanged(int currentIndex, int newIndex)Method called when the user selects a tab.- Parameters:
currentIndex-newIndex-- Returns:
falseif you want to prevent the tab change,trueotherwise
-
getTabHandler
TabHandler getTabHandler(int index)
Returns the tab handler of the tab i.- Parameters:
index- the index of the tab- Returns:
- the tab handler of the index i if the handler implements
the
TabHandlerinterface,nullotherwise
-
setCustomTab
void setCustomTab(int index, TabContentModel model)Sets aCustomTabas tab component.- Parameters:
index-model-
-
removeTab
boolean removeTab(int i)
Removes the tab i- Parameters:
i- the index of the tab to remove- Returns:
falseif you want to prevent the tab close,trueotherwise
-
-