KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 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 /**
14  * This adapter class provides default implementations for the
15  * methods described by the <code>CTabFolder2Listener</code> interface.
16  * <p>
17  * Classes that wish to deal with <code>CTabFolderEvent</code>s can
18  * extend this class and override only the methods which they are
19  * interested in.
20  * </p>
21  *
22  * @see CTabFolder2Listener
23  * @see CTabFolderEvent
24  *
25  * @since 3.0
26  */

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

40 public void close(CTabFolderEvent event){}
41
42 /**
43  * Sent when the user clicks on the minimize button of a CTabFolder.
44  * <p>
45  * The default behaviour is to do nothing.
46  * </p>
47  *
48  * @param event an event containing information about the minimize
49  */

50 public void minimize(CTabFolderEvent event){}
51
52 /**
53  * Sent when the user clicks on the maximize button of a CTabFolder.
54  * <p>
55  * The default behaviour is to do nothing.
56  * </p>
57  *
58  * @param event an event containing information about the maximize
59  */

60 public void maximize(CTabFolderEvent event){}
61
62 /**
63  * Sent when the user clicks on the restore button of a CTabFolder.
64  * <p>
65  * The default behaviour is to do nothing.
66  * </p>
67  *
68  * @param event an event containing information about the restore
69  */

70 public void restore(CTabFolderEvent event){}
71
72 /**
73  * Sent when the user clicks on the chevron button of a CTabFolder.
74  * <p>
75  * The default behaviour is to show a list of items that are not currently
76  * visible and to change the selection based on the item selected from the list.
77  * </p>
78  *
79  * @param event an event containing information about the show list
80  */

81 public void showList(CTabFolderEvent event){}
82 }
83
Popular Tags