/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
- package common.gui;
- import java.util.EventListener;
- /**
- * The listener that's notified when an tab should be closed in the
- * <code>CloseableTabbedPane</code>.
- */
- public interface CloseableTabbedPaneListener extends EventListener {
- /**
- * Informs all <code>CloseableTabbedPaneListener</code>s when a tab should be
- * closed
- * @param tabIndexToClose the index of the tab which should be closed
- * @return true if the tab can be closed, false otherwise
- */
- boolean closeTab( int tabIndexToClose );
- }