]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/custom/CTabFolderEvent.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / custom / CTabFolderEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2011 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.custom;
15
16
17 import org.eclipse.swt.events.*;
18 import org.eclipse.swt.widgets.*;
19
20 /**
21  * This event is sent when an event is generated in the CTabFolder.
22  *
23  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
24  */
25 public class CTabFolderEvent extends TypedEvent {
26         /**
27          * The tab item for the operation.
28          */
29         public Widget item;
30
31         /**
32          * A flag indicating whether the operation should be allowed.
33          * Setting this field to <code>false</code> will cancel the operation.
34          * Applies to the close and showList events.
35          */
36         public boolean doit;
37
38         /**
39          * The widget-relative, x coordinate of the chevron button
40          * at the time of the event.  Applies to the showList event.
41          *
42          * @since 3.0
43          */
44         public int x;
45         /**
46          * The widget-relative, y coordinate of the chevron button
47          * at the time of the event.  Applies to the showList event.
48          *
49          * @since 3.0
50          */
51         public int y;
52         /**
53          * The width of the chevron button at the time of the event.
54          * Applies to the showList event.
55          *
56          * @since 3.0
57          */
58         public int width;
59         /**
60          * The height of the chevron button at the time of the event.
61          * Applies to the showList event.
62          *
63          * @since 3.0
64          */
65         public int height;
66
67         static final long serialVersionUID = 3760566386225066807L;
68
69 /**
70  * Constructs a new instance of this class.
71  *
72  * @param w the widget that fired the event
73  */
74 CTabFolderEvent(Widget w) {
75         super(w);
76 }
77
78 /**
79  * Returns a string containing a concise, human-readable
80  * description of the receiver.
81  *
82  * @return a string representation of the event
83  */
84 @Override
85 public String toString() {
86         String string = super.toString ();
87         return string.substring (0, string.length() - 1) // remove trailing '}'
88                 + " item=" + item
89                 + " doit=" + doit
90                 + " x=" + x
91                 + " y=" + y
92                 + " width=" + width
93                 + " height=" + height
94                 + "}";
95 }
96 }