public class DefaultActionPopupMenuFactory extends java.lang.Object implements ActionPopupMenuFactory
ActionPopupMenuFactory
creates
new DefaultActionPopupMenu
s.Constructor and Description |
---|
DefaultActionPopupMenuFactory() |
Modifier and Type | Method and Description |
---|---|
ActionPopupMenu |
createMenu(java.awt.Component owner,
Dockable dockable,
DockActionSource actions,
java.lang.Object source)
Creates a new menu using
actions as content. |
public ActionPopupMenu createMenu(java.awt.Component owner, Dockable dockable, DockActionSource actions, java.lang.Object source)
ActionPopupMenuFactory
actions
as content.createMenu
in interface ActionPopupMenuFactory
owner
- the Component
over which the menu is going to be seendockable
- the Dockable
for which the menu is shownactions
- the actions that are to be shown in the new menusource
- the object which is responsible for showing the menu, this could be
a DockElementRepresentative
, dockable
itself, a MenuDockAction
,
or another unspecified object, may be null
null
if no menu should be shown for the given configuration