SelectionEvent

Instances of this class are sent as a result of widgets being selected. <p> Note: The fields that are filled in depend on the widget. </p>

@see SelectionListener @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

Constructors

this
this(Event e)

Constructs a new instance of this class based on the information in the given untyped event.

Members

Functions

toString
String toString()

Returns a string containing a concise, human-readable description of the receiver.

Variables

detail
int detail;

Extra detail information about the selection, depending on the widget.

doit
bool doit;

A flag indicating whether the operation should be allowed. Setting this field to <code>false</code> will cancel the operation, depending on the widget.

height
int height;

The height of selected area.

item
Widget item;

The item that was selected.

stateMask
int stateMask;

The state of the keyboard modifier keys at the time the event was generated.

text
String text;

The text of the hyperlink that was selected. This will be either the text of the hyperlink or the value of its HREF, if one was specified.

width
int width;

The width of selected area.

x
int x;

The x location of the selected area.

y
int y;

The y location of selected area.

Inherited Members

From TypedEvent

display
Display display;

the display where the event occurred

widget
Widget widget;

the widget that issued the event

time
int time;

the time that the event occurred.

data
Object data;

a field for application use

getName
String getName()

Returns the name of the event. This is the name of the class without the module name.

toString
String toString()

Returns a string containing a concise, human-readable description of the receiver.

Meta