1 /*******************************************************************************
2 * Copyright (c) 2000, 2016 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.custom;
16 import org.eclipse.swt.internal.*;
19 * Classes which implement this interface provide a method
20 * that deals with events generated in the CTabFolder.
22 * After creating an instance of a class that implements
23 * this interface it can be added to a CTabFolder using the
24 * <code>addCTabFolderListener</code> method and removed using
25 * the <code>removeCTabFolderListener</code> method. When a
26 * tab item is closed, the itemClosed method will be invoked.
29 * @see CTabFolderEvent
32 public interface CTabFolderListener extends SWTEventListener {
35 * Sent when the user clicks on the close button of an item in the CTabFolder. The item being closed is specified
36 * in the event.item field. Setting the event.doit field to false will stop the CTabItem from closing.
37 * When the CTabItem is closed, it is disposed. The contents of the CTabItem (see CTabItem.setControl) will be
38 * made not visible when the CTabItem is closed.
40 * @param event an event indicating the item being closed
42 * @see CTabItem#setControl
44 public void itemClosed(CTabFolderEvent event);