bibliothek.gui.dock.action.popup
Interface ActionPopupMenuFactory

All Known Implementing Classes:
DefaultActionPopupMenuFactory

public interface ActionPopupMenuFactory

This interface is used by the PopupController to create new popup menus when the user right clickes on some Component.

Author:
Benjamin Sigg

Method Summary
 ActionPopupMenu createMenu(Component owner, Dockable dockable, DockActionSource actions, Object source)
          Creates a new menu using actions as content.
 

Method Detail

createMenu

ActionPopupMenu createMenu(Component owner,
                           Dockable dockable,
                           DockActionSource actions,
                           Object source)
Creates a new menu using actions as content.

Parameters:
owner - the Component over which the menu is going to be seen
dockable - the Dockable for which the menu is shown
actions - the actions that are to be shown in the new menu
source - 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
Returns:
the new popup menu or null if no menu should be shown for the given configuration