Package org.eclipse.swt.events
Class MenuDetectEvent
java.lang.Object
java.util.EventObject
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.events.MenuDetectEvent
- All Implemented Interfaces:
- Serializable
Instances of this class are sent whenever the platform-
 specific trigger for showing a context menu is detected.
- Since:
- 3.3
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintThe context menu trigger type.booleanA flag indicating whether the operation should be allowed.intThe display-relative x coordinate of the pointer at the time the context menu trigger occurred.intThe display-relative y coordinate of the pointer at the time the context menu trigger occurred.Fields inherited from class org.eclipse.swt.events.TypedEventdata, display, time, widgetFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance of this class based on the information in the given untyped event.
- 
Method SummaryMethods inherited from class java.util.EventObjectgetSource
- 
Field Details- 
xpublic int xThe display-relative x coordinate of the pointer at the time the context menu trigger occurred.
- 
ypublic int yThe display-relative y coordinate of the pointer at the time the context menu trigger occurred.
- 
doitpublic boolean doitA flag indicating whether the operation should be allowed. Setting this field tofalsewill cancel the operation.
- 
detailpublic int detailThe context menu trigger type. A field indicating whether the context menu was triggered by a pointing device such as a mouse (indicated byMENU_MOUSE), or by a focus-based device such as a keyboard (MENU_KEYBOARD). If the trigger wasMENU_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
 
 
- 
- 
Constructor Details- 
MenuDetectEventConstructs a new instance of this class based on the information in the given untyped event.- Parameters:
- e- the untyped event containing the information
 
 
- 
- 
Method Details- 
toStringReturns a string containing a concise, human-readable description of the receiver.- Overrides:
- toStringin class- TypedEvent
- Returns:
- a string representation of the event
 
 
-