Mercurial > projects > dwt-mac
comparison dwt/custom/CTabFolder2Adapter.d @ 41:6337764516f1
Sync dwt/custom with dwt-linux (took copy of complete folder)
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 07 Oct 2008 16:29:55 +0200 |
parents | f565d3a95c0a |
children |
comparison
equal
deleted
inserted
replaced
40:fbe68c33eeee | 41:6337764516f1 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2004 IBM Corporation and others. | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * | |
11 * Port to the D programming language: | 10 * Port to the D programming language: |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | 11 * Frank Benoit <benoit@tionex.de> |
13 *******************************************************************************/ | 12 *******************************************************************************/ |
14 module dwt.custom.CTabFolder2Adapter; | 13 module dwt.custom.CTabFolder2Adapter; |
15 | |
16 import dwt.custom.CTabFolder2Listener; | 14 import dwt.custom.CTabFolder2Listener; |
17 import dwt.custom.CTabFolderEvent; | 15 import dwt.custom.CTabFolderEvent; |
18 | 16 |
19 /** | 17 /** |
20 * This adapter class provides default implementations for the | 18 * This adapter class provides default implementations for the |
21 * methods described by the <code>CTabFolder2Listener</code> interface. | 19 * methods described by the <code>CTabFolder2Listener</code> interface. |
22 * <p> | 20 * <p> |
23 * Classes that wish to dealF with <code>CTabFolderEvent</code>s can | 21 * Classes that wish to deal with <code>CTabFolderEvent</code>s can |
24 * extend this class and override only the methods which they are | 22 * extend this class and override only the methods which they are |
25 * interested in. | 23 * interested in. |
26 * </p> | 24 * </p> |
27 * | 25 * |
28 * @see CTabFolder2Listener | 26 * @see CTabFolder2Listener |
29 * @see CTabFolderEvent | 27 * @see CTabFolderEvent |
30 * | 28 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
29 * | |
31 * @since 3.0 | 30 * @since 3.0 |
32 */ | 31 */ |
33 public class CTabFolder2Adapter : CTabFolder2Listener { | 32 public class CTabFolder2Adapter : CTabFolder2Listener { |
34 | 33 |
35 /** | 34 /** |
36 * Sent when the user clicks on the close button of an item in the CTabFolder. The item being closed is specified | 35 * Sent when the user clicks on the close button of an item in the CTabFolder. The item being closed is specified |
37 * in the event.item field. Setting the event.doit field to false will stop the CTabItem from closing. | 36 * in the event.item field. Setting the event.doit field to false will stop the CTabItem from closing. |
38 * When the CTabItem is closed, it is disposed. The contents of the CTabItem (see CTabItem#setControl) will be | 37 * When the CTabItem is closed, it is disposed. The contents of the CTabItem (see CTabItem#setControl) will be |
39 * made not visible when the CTabItem is closed. | 38 * made not visible when the CTabItem is closed. |
40 * <p> | 39 * <p> |
41 * The default behaviour is to close the CTabItem. | 40 * The default behaviour is to close the CTabItem. |
42 * </p> | 41 * </p> |
43 * | 42 * |
44 * @param event an event indicating the item being closed | 43 * @param event an event indicating the item being closed |
45 */ | 44 */ |
46 public void close (CTabFolderEvent event) { | 45 public void close(CTabFolderEvent event){} |
47 } | |
48 | 46 |
49 /** | 47 /** |
50 * Sent when the user clicks on the minimize button of a CTabFolder. | 48 * Sent when the user clicks on the minimize button of a CTabFolder. |
51 * <p> | 49 * <p> |
52 * The default behaviour is to do nothing. | 50 * The default behaviour is to do nothing. |
53 * </p> | 51 * </p> |
54 * | 52 * |
55 * @param event an event containing information about the minimize | 53 * @param event an event containing information about the minimize |
56 */ | 54 */ |
57 public void minimize (CTabFolderEvent event) { | 55 public void minimize(CTabFolderEvent event){} |
58 } | |
59 | 56 |
60 /** | 57 /** |
61 * Sent when the user clicks on the maximize button of a CTabFolder. | 58 * Sent when the user clicks on the maximize button of a CTabFolder. |
62 * <p> | 59 * <p> |
63 * The default behaviour is to do nothing. | 60 * The default behaviour is to do nothing. |
64 * </p> | 61 * </p> |
65 * | 62 * |
66 * @param event an event containing information about the maximize | 63 * @param event an event containing information about the maximize |
67 */ | 64 */ |
68 public void maximize (CTabFolderEvent event) { | 65 public void maximize(CTabFolderEvent event){} |
69 } | |
70 | 66 |
71 /** | 67 /** |
72 * Sent when the user clicks on the restore button of a CTabFolder. | 68 * Sent when the user clicks on the restore button of a CTabFolder. |
73 * <p> | 69 * <p> |
74 * The default behaviour is to do nothing. | 70 * The default behaviour is to do nothing. |
75 * </p> | 71 * </p> |
76 * | 72 * |
77 * @param event an event containing information about the restore | 73 * @param event an event containing information about the restore |
78 */ | 74 */ |
79 public void restore (CTabFolderEvent event) { | 75 public void restore(CTabFolderEvent event){} |
80 } | |
81 | 76 |
82 /** | 77 /** |
83 * Sent when the user clicks on the chevron button of a CTabFolder. | 78 * Sent when the user clicks on the chevron button of a CTabFolder. |
84 * <p> | 79 * <p> |
85 * The default behaviour is to show a list of items that are not currently | 80 * The default behaviour is to show a list of items that are not currently |
86 * visible and to change the selection based on the item selected from the list. | 81 * visible and to change the selection based on the item selected from the list. |
87 * </p> | 82 * </p> |
88 * | 83 * |
89 * @param event an event containing information about the show list | 84 * @param event an event containing information about the show list |
90 */ | 85 */ |
91 public void showList (CTabFolderEvent event) { | 86 public void showList(CTabFolderEvent event){} |
92 } | |
93 } | 87 } |