/bundles/plugins-trunk/CommonControls/common/gui/CloseableTabbedPaneListener.java
# · Java · 17 lines · 5 code · 2 blank · 10 comment · 0 complexity · 7efaba75222f210fa91b18948fdc47d8 MD5 · raw file
- 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 );
- }