Interface TabHandler
public interface TabHandler
Interface describing UI contained in a tab.
- Since:
- 2.8
- Author:
- Kevin Morin - morin@codelutin.com
-
Method Summary
Modifier and Type Method Description booleanonHideTab(int currentIndex, int newIndex)Method called when the tab is hiddenbooleanonRemoveTab()Method called when the tab is removedvoidonShowTab(int currentIndex, int newIndex)Method called when the tab is shown
-
Method Details
-
onHideTab
boolean onHideTab(int currentIndex, int newIndex)Method called when the tab is hidden- Parameters:
currentIndex-newIndex-- Returns:
falseto prevent the tab to be hidden,trueotherwise.
-
onShowTab
void onShowTab(int currentIndex, int newIndex)Method called when the tab is shown- Parameters:
currentIndex-newIndex-
-
onRemoveTab
boolean onRemoveTab()Method called when the tab is removed- Returns:
falseto prevent the tab to be closed,trueotherwise.
-