Mercurial > projects > dwt-mac
comparison dwt/custom/CTabFolderListener.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
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 * Port to the D Programming language: | |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | |
13 *******************************************************************************/ | |
14 module dwt.custom.CTabFolderListener; | |
15 | |
16 import dwt.custom.CTabFolderEvent; | |
17 import dwt.internal.DWTEventListener; | |
18 | |
19 /** | |
20 * Classes which implement this interface provide a method | |
21 * that deals with events generated in the CTabFolder. | |
22 * <p> | |
23 * After creating an instance of a class that : | |
24 * this interface it can be added to a CTabFolder using the | |
25 * <code>addCTabFolderListener</code> method and removed using | |
26 * the <code>removeCTabFolderListener</code> method. When a | |
27 * tab item is closed, the itemClosed method will be invoked. | |
28 * </p> | |
29 * | |
30 * @see CTabFolderEvent | |
31 */ | |
32 public interface CTabFolderListener : DWTEventListener { | |
33 | |
34 /** | |
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. | |
39 * | |
40 * @param event an event indicating the item being closed | |
41 * | |
42 * @see CTabItem#setControl | |
43 */ | |
44 public void itemClosed (CTabFolderEvent event); | |
45 } |