KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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 import org.eclipse.swt.events.*;
15 import org.eclipse.swt.widgets.*;
16
17 /**
18  *
19  */

20 public class CTabFolderEvent extends TypedEvent {
21     /**
22      * The tab item for the operation.
23      */

24     public Widget item;
25
26     /**
27      * A flag indicating whether the operation should be allowed.
28      * Setting this field to <code>false</code> will cancel the operation.
29      * Applies to the close and showList events.
30      */

31     public boolean doit;
32
33     /**
34      * The widget-relative, x coordinate of the chevron button
35      * at the time of the event. Applies to the showList event.
36      *
37      * @since 3.0
38      */

39     public int x;
40     /**
41      * The widget-relative, y coordinate of the chevron button
42      * at the time of the event. Applies to the showList event.
43      *
44      * @since 3.0
45      */

46     public int y;
47     /**
48      * The width of the chevron button at the time of the event.
49      * Applies to the showList event.
50      *
51      * @since 3.0
52      */

53     public int width;
54     /**
55      * The height of the chevron button at the time of the event.
56      * Applies to the showList event.
57      *
58      * @since 3.0
59      */

60     public int height;
61
62     static final long serialVersionUID = 3760566386225066807L;
63     
64 /**
65  * Constructs a new instance of this class.
66  *
67  * @param w the widget that fired the event
68  */

69 CTabFolderEvent(Widget w) {
70     super(w);
71 }
72
73 /**
74  * Returns a string containing a concise, human-readable
75  * description of the receiver.
76  *
77  * @return a string representation of the event
78  */

79 public String JavaDoc toString() {
80     String JavaDoc string = super.toString ();
81     return string.substring (0, string.length() - 1) // remove trailing '}'
82
+ " item=" + item
83         + " doit=" + doit
84         + " x=" + x
85         + " y=" + y
86         + " width=" + width
87         + " height=" + height
88         + "}";
89 }
90 }
91
Popular Tags