public interface HasShowContextMenuHandlers
extends com.google.gwt.event.shared.HasHandlers | Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration | addShowContextMenuHandler(ShowContextMenuHandler handler) Called when the mouse is right-clicked anywhere in this formItem. |
com.google.gwt.event.shared.HandlerRegistration addShowContextMenuHandler(ShowContextMenuHandler handler)
Note that it can be bad practice to cancel this method if the mouse is over the data element for the item, because doing so would replace the builtin browser-default menus that users may expect. You can use DynamicForm.getEventItemInfo() to return an info object that can be used to determine which part of the item is under the mouse.
handler - the showContextMenu handlerHandlerRegistration used to remove this handler