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
    boolean onHideTab​(int currentIndex, int newIndex)
    Method called when the tab is hidden
    boolean onRemoveTab()
    Method called when the tab is removed
    void onShowTab​(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:
      false to prevent the tab to be hidden, true otherwise.
    • 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:
      false to prevent the tab to be closed, true otherwise.