Interface JVetoableTabbedPane.ChangeSelectedIndex

  • Enclosing class:
    JVetoableTabbedPane

    public static interface JVetoableTabbedPane.ChangeSelectedIndex
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canChangeTab​(int currentSelectedIndex, int newSelectedIndex)
      Ask to change tab from selectedIndex tab to index.
    • Method Detail

      • canChangeTab

        boolean canChangeTab​(int currentSelectedIndex,
                             int newSelectedIndex)
        Ask to change tab from selectedIndex tab to index.

        If response is false, then we should not quit the current tab.

        Parameters:
        currentSelectedIndex - the current index of the selected tab
        newSelectedIndex - the index of the tab we want to go on
        Returns:
        true if we can do the change, false otherwise.