Top Description Fields Constructors Methods
org.eclipse.swt.events

public final Class MenuDetectEvent

extends TypedEvent
Class Inheritance
Imports
org.eclipse.swt.widgets.*

Instances of this class are sent whenever the platform- specific trigger for showing a context menu is detected.
Since
3.3
See Also
MenuDetectListener, Sample code and further information

Field Summary

Modifier and TypeField and Description
public int
detail

The context menu trigger type.

public boolean
doit

A flag indicating whether the operation should be allowed.

private static final long
public int
x

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

public int
y

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

Inherited from org.eclipse.swt.events.TypedEvent:
datadisplaytimewidget

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string representation of the event
toString
()

Overrides org.eclipse.swt.events.TypedEvent.toString.

Returns a string containing a concise, human-readable description of the receiver.
Inherited from org.eclipse.swt.events.TypedEvent:
getName

Field Detail

detailback to summary
public int detail

The context menu trigger type.

A field indicating whether the context menu was triggered by a pointing device such as a mouse (indicated by MENU_MOUSE), or by a focus-based device such as a keyboard (MENU_KEYBOARD). If the trigger was MENU_KEYBOARD, then the application should provide new display-relative x and y coordinates based on the current selection or the current focus.
Since
3.8
doitback to summary
public boolean doit

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

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.swt.events.TypedEvent.serialVersionUID.

xback to summary
public int x

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

yback to summary
public int y

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

Constructor Detail

Method Detail

toStringback to summary
public String toString()

Overrides org.eclipse.swt.events.TypedEvent.toString.

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

Returns:String

a string representation of the event

Annotations
@Override