KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > custom > CTabFolderListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.custom;
12
13 import org.eclipse.swt.internal.*;
14
15 /**
16  * Classes which implement this interface provide a method
17  * that deals with events generated in the CTabFolder.
18  * <p>
19  * After creating an instance of a class that implements
20  * this interface it can be added to a CTabFolder using the
21  * <code>addCTabFolderListener</code> method and removed using
22  * the <code>removeCTabFolderListener</code> method. When a
23  * tab item is closed, the itemClosed method will be invoked.
24  * </p>
25  *
26  * @see CTabFolderEvent
27  */

28 public interface CTabFolderListener extends SWTEventListener {
29     
30 /**
31  * Sent when the user clicks on the close button of an item in the CTabFolder. The item being closed is specified
32  * in the event.item field. Setting the event.doit field to false will stop the CTabItem from closing.
33  * When the CTabItem is closed, it is disposed. The contents of the CTabItem (see CTabItem.setControl) will be
34  * made not visible when the CTabItem is closed.
35  *
36  * @param event an event indicating the item being closed
37  *
38  * @see CTabItem#setControl
39  */

40 public void itemClosed(CTabFolderEvent event);
41 }
42
Popular Tags