public class DelegateTabContainerHandler extends Object implements TabContainerHandler
| Constructor and Description |
|---|
DelegateTabContainerHandler(JTabbedPane tabbedPane) |
| Modifier and Type | Method and Description |
|---|---|
TabHandler |
getTabHandler(int index)
Returns the tab handler of the tab i.
|
JTabbedPane |
getTabPanel() |
void |
init() |
boolean |
onTabChanged(int currentIndex,
int newIndex)
Method called when the user selects a tab.
|
boolean |
removeTab(int i)
Removes the tab i
|
void |
setCustomTab(int index,
TabContentModel model)
Sets a
CustomTab as tab component. |
public DelegateTabContainerHandler(JTabbedPane tabbedPane)
public JTabbedPane getTabPanel()
getTabPanel in interface TabContainerHandlerpublic void init()
init in interface TabContainerHandlerpublic boolean onTabChanged(int currentIndex,
int newIndex)
TabContainerHandleronTabChanged in interface TabContainerHandlerfalse if you want to prevent the tab change,
true otherwisepublic TabHandler getTabHandler(int index)
TabContainerHandlergetTabHandler in interface TabContainerHandlerindex - the index of the tabTabHandler interface,
null otherwisepublic void setCustomTab(int index,
TabContentModel model)
TabContainerHandlerCustomTab as tab component.setCustomTab in interface TabContainerHandlerpublic boolean removeTab(int i)
TabContainerHandlerremoveTab in interface TabContainerHandleri - the index of the tab to removefalse if you want to prevent the tab close,
true otherwiseCopyright © 2008–2018 Code Lutin. All rights reserved.