com.smartgwt.client.widgets.form.fields.events

## Interface ShowContextMenuHandler

- All Superinterfaces:
    com.google.gwt.event.shared.EventHandler

      public interface ShowContextMenuHandler
      extends com.google.gwt.event.shared.EventHandler

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onShowContextMenu(ShowContextMenuEvent event)` Called when the mouse is right-clicked anywhere in this formItem.

- - ### Method Detail

    - #### onShowContextMenu

          void onShowContextMenu(ShowContextMenuEvent event)

      Called when the mouse is right-clicked anywhere in this formItem. If the implementation returns false, default browser behavior is cancelled.

      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.

      Parameters:
        `event` - the event