Interface PopupMenuProvider
public interface PopupMenuProvider
This interface provides a popup menu.
-
Method Summary
Modifier and TypeMethodDescriptiongetPopupMenu
(Widget widget, Point localLocation) Get a JPopupMenu to display in the context of the given Widget.
-
Method Details
-
getPopupMenu
Get a JPopupMenu to display in the context of the given Widget. This method may returnnull
. If that is the case, no popup menu will be displayed if this PopupMenuAction gets a valid popup trigger on the given Widget. Note: Since version 2.6 thelocalLocation
parameter could be null.- Parameters:
widget
- the widgetlocalLocation
- the local location where the popup menu was invoked; if null, then popup menu is invoked by a keyboard- Returns:
- The JPopupMenu to display for the given Widget.
May be
null
.
-