/*
* Copyright (c) 2010-2016, Sikuli.org, sikulix.com
* Released under the MIT License.
*
*/
package org.sikuli.ide;
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);
}