MenuDetectEvent

Instances of this class are sent whenever the platform- specific trigger for showing a context menu is detected.

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

@since 3.3

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

doit
bool doit;

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

x
int x;

the display-relative x coordinate of the pointer at the time the context menu trigger occurred

y
int y;

the display-relative y coordinate of the pointer at the time the context menu trigger occurred

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