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