PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Java | 17 lines | 5 code | 2 blank | 10 comment | 0 complexity | 7efaba75222f210fa91b18948fdc47d8 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  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. }