25
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2008 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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module org.eclipse.swt.custom.CTabFolder2Adapter;
|
|
14
|
|
15 import java.lang.all;
|
|
16 import org.eclipse.swt.custom.CTabFolder2Listener;
|
|
17 import org.eclipse.swt.custom.CTabFolderEvent;
|
|
18
|
|
19 /**
|
|
20 * This adapter class provides default implementations for the
|
|
21 * methods described by the <code>CTabFolder2Listener</code> interface.
|
|
22 * <p>
|
|
23 * Classes that wish to deal with <code>CTabFolderEvent</code>s can
|
|
24 * extend this class and override only the methods which they are
|
|
25 * interested in.
|
|
26 * </p>
|
|
27 *
|
|
28 * @see CTabFolder2Listener
|
|
29 * @see CTabFolderEvent
|
|
30 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
|
|
31 *
|
|
32 * @since 3.0
|
|
33 */
|
|
34 public class CTabFolder2Adapter : CTabFolder2Listener {
|
|
35
|
|
36 /**
|
|
37 * Sent when the user clicks on the close button of an item in the CTabFolder. The item being closed is specified
|
|
38 * in the event.item field. Setting the event.doit field to false will stop the CTabItem from closing.
|
|
39 * When the CTabItem is closed, it is disposed. The contents of the CTabItem (see CTabItem#setControl) will be
|
|
40 * made not visible when the CTabItem is closed.
|
|
41 * <p>
|
|
42 * The default behaviour is to close the CTabItem.
|
|
43 * </p>
|
|
44 *
|
|
45 * @param event an event indicating the item being closed
|
|
46 */
|
|
47 public void close(CTabFolderEvent event){}
|
|
48
|
|
49 /**
|
|
50 * Sent when the user clicks on the minimize button of a CTabFolder.
|
|
51 * <p>
|
|
52 * The default behaviour is to do nothing.
|
|
53 * </p>
|
|
54 *
|
|
55 * @param event an event containing information about the minimize
|
|
56 */
|
|
57 public void minimize(CTabFolderEvent event){}
|
|
58
|
|
59 /**
|
|
60 * Sent when the user clicks on the maximize button of a CTabFolder.
|
|
61 * <p>
|
|
62 * The default behaviour is to do nothing.
|
|
63 * </p>
|
|
64 *
|
|
65 * @param event an event containing information about the maximize
|
|
66 */
|
|
67 public void maximize(CTabFolderEvent event){}
|
|
68
|
|
69 /**
|
|
70 * Sent when the user clicks on the restore button of a CTabFolder.
|
|
71 * <p>
|
|
72 * The default behaviour is to do nothing.
|
|
73 * </p>
|
|
74 *
|
|
75 * @param event an event containing information about the restore
|
|
76 */
|
|
77 public void restore(CTabFolderEvent event){}
|
|
78
|
|
79 /**
|
|
80 * Sent when the user clicks on the chevron button of a CTabFolder.
|
|
81 * <p>
|
|
82 * The default behaviour is to show a list of items that are not currently
|
|
83 * visible and to change the selection based on the item selected from the list.
|
|
84 * </p>
|
|
85 *
|
|
86 * @param event an event containing information about the show list
|
|
87 */
|
|
88 public void showList(CTabFolderEvent event){}
|
|
89 }
|