public class: SelectionEvent
All Implemented Interfaces:
Direct Known Subclasses:
Instances of this class are sent as a result of
widgets being selected.
Note: The fields that are filled in depend on the widget.
|public Widget ||item ||The item that was selected. |
|public int ||detail ||Extra detail information about the selection, depending on the widget.
ScrollBar and Slider
Table, Tree and TableTree
CoolItem and ToolItem
|public int ||x ||The x location of the selected area. |
|public int ||y ||The y location of selected area. |
|public int ||width ||The width of selected area. |
|public int ||height ||The height of selected area. |
|public int ||stateMask ||The state of the keyboard modifier keys at the time
the event was generated. |
|public boolean ||doit ||A flag indicating whether the operation should be allowed.
Setting this field to |
false will cancel the
operation, depending on the widget.
public SelectionEvent(Event e)
Constructs a new instance of this class based on the
information in the given untyped event.
e - the untyped event containing the information
|Method from org.eclipse.swt.events.SelectionEvent Summary:|
|Methods from java.lang.Object:|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait|
|Method from org.eclipse.swt.events.SelectionEvent Detail:|
public String toString()
Returns a string containing a concise, human-readable
description of the receiver.