/bundles/plugins-trunk/CommonControls/common/gui/CloseableTabbedPaneListener.java

# · Java · 17 lines · 5 code · 2 blank · 10 comment · 0 complexity · 7efaba75222f210fa91b18948fdc47d8 MD5 · raw file

  1. package common.gui;
  2. import java.util.EventListener;
  3. /**
  4. * The listener that's notified when an tab should be closed in the
  5. * <code>CloseableTabbedPane</code>.
  6. */
  7. public interface CloseableTabbedPaneListener extends EventListener {
  8. /**
  9. * Informs all <code>CloseableTabbedPaneListener</code>s when a tab should be
  10. * closed
  11. * @param tabIndexToClose the index of the tab which should be closed
  12. * @return true if the tab can be closed, false otherwise
  13. */
  14. boolean closeTab( int tabIndexToClose );
  15. }