Interface TabContainerHandler

  • All Known Implementing Classes:
    DelegateTabContainerHandler

    public interface TabContainerHandler
    Created on 11/25/13.
    Since:
    2.8
    Author:
    Tony Chemit - chemit@codelutin.com
    • Method Detail

      • init

        void init()
      • onTabChanged

        boolean onTabChanged​(int currentIndex,
                             int newIndex)
        Method called when the user selects a tab.
        Parameters:
        currentIndex -
        newIndex -
        Returns:
        false if you want to prevent the tab change, true otherwise
      • 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 TabHandler interface, null otherwise
      • setCustomTab

        void setCustomTab​(int index,
                          TabContentModel model)
        Sets a CustomTab as tab component.
        Parameters:
        index -
        model -
      • removeTab

        boolean removeTab​(int i)
        Removes the tab i
        Parameters:
        i - the index of the tab to remove
        Returns:
        false if you want to prevent the tab close, true otherwise