1 /*******************************************************************************
2 * Copyright (c) 2000, 2011 IBM Corporation and others.
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/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.custom;
17 import org.eclipse.swt.events.*;
18 import org.eclipse.swt.widgets.*;
21 * This event is sent when an event is generated in the CTabFolder.
23 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
25 public class CTabFolderEvent extends TypedEvent {
27 * The tab item for the operation.
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.
39 * The widget-relative, x coordinate of the chevron button
40 * at the time of the event. Applies to the showList event.
46 * The widget-relative, y coordinate of the chevron button
47 * at the time of the event. Applies to the showList event.
53 * The width of the chevron button at the time of the event.
54 * Applies to the showList event.
60 * The height of the chevron button at the time of the event.
61 * Applies to the showList event.
67 static final long serialVersionUID = 3760566386225066807L;
70 * Constructs a new instance of this class.
72 * @param w the widget that fired the event
74 CTabFolderEvent(Widget w) {
79 * Returns a string containing a concise, human-readable
80 * description of the receiver.
82 * @return a string representation of the event
85 public String toString() {
86 String string = super.toString ();
87 return string.substring (0, string.length() - 1) // remove trailing '}'