|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Event
Instances of this class provide a description of a particular event which occurred within SWT. The SWT untyped listener API uses these instances for all event dispatching.
Note: For a given event, only the fields which are appropriate will be filled in. The contents of the fields which are not used by the event are unspecified.
Field Summary | |
int | button
the button that was pressed or released; 1 for the first button, 2 for the second button, and 3 for the third button, etc. |
char | character
depending on the event, the character represented by the key that was typed. |
int | count
the number of following paint events which are pending which may always be zero on some platforms |
Object | data
a field for application use |
int | detail
the event specific detail field, as defined by the detail constants in class SWT |
Display | display
the display where the event occurred |
boolean | doit
depending on the event, a flag indicating whether the operation should be allowed. |
int | end
depending on the event, the range of text being modified. |
GC | gc
the graphics context to use when painting that is configured to use the colors, font and damaged region of the control. |
int | height
the height of the bounding rectangle of the region that requires painting |
Widget | item
the item that the event occurred in (can be null) |
int | keyCode
depending on the event, the key code of the key that was typed, as defined by the key code constants in class SWT. |
int | start
depending on the event, the range of text being modified. |
int | stateMask
depending on the event, the state of the keyboard modifier keys and mouse masks at the time the event was generated. |
String | text
depending on the event, the new text that will be inserted. |
int | time
the time that the event occurred. |
int | type
the type of event, as defined by the event type constants in class SWT |
Widget | widget
the widget that issued the event |
int | width
the width of the bounding rectangle of the region that requires painting |
int | x
depending on the event type, the x offset of the bounding rectangle of the region that requires painting or the widget-relative, x coordinate of the pointer at the time the mouse button was pressed or released |
int | y
depending on the event type, the y offset of the bounding rectangle of the region that requires painting or the widget-relative, y coordinate of the pointer at the time the mouse button was pressed or released |
Constructor Summary | |
Event()
|
Method Summary | |
Rectangle | getBounds()
Gets the bounds. |
void | setBounds(Rectangle rect)
Sets the bounds. |
String | toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Display display
public Widget widget
public int type
public int detail
public Widget item
public GC gc
public int x
public int y
public int width
public int height
public int count
public int time
public int button
public char character
public int keyCode
public int stateMask
public int start
public int end
public String text
public boolean doit
public Object data
Constructor Detail |
public Event()
Method Detail |
public Rectangle getBounds()
public void setBounds(Rectangle rect)
public String toString()
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.