bibliothek.gui.dock.action.popup
Class DefaultActionPopupMenuFactory

java.lang.Object
  extended by bibliothek.gui.dock.action.popup.DefaultActionPopupMenuFactory
All Implemented Interfaces:
ActionPopupMenuFactory

public class DefaultActionPopupMenuFactory
extends Object
implements ActionPopupMenuFactory

The default implementation of a ActionPopupMenuFactory creates new DefaultActionPopupMenus.

Author:
Benjamin Sigg

Constructor Summary
DefaultActionPopupMenuFactory()
           
 
Method Summary
 ActionPopupMenu createMenu(Component owner, Dockable dockable, DockActionSource actions, Object source)
          Creates a new menu using actions as content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultActionPopupMenuFactory

public DefaultActionPopupMenuFactory()
Method Detail

createMenu

public ActionPopupMenu createMenu(Component owner,
                                  Dockable dockable,
                                  DockActionSource actions,
                                  Object source)
Description copied from interface: ActionPopupMenuFactory
Creates a new menu using actions as content.

Specified by:
createMenu in interface ActionPopupMenuFactory
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