com.javadocking.dockable.action
Interface PopupMenuFactory

All Known Implementing Classes:
DefaultPopupMenuFactory

public interface PopupMenuFactory

This is a factory that creates a popup menu for one dockable or a group of dockables.

Author:
Heidi Rakels.

Method Summary
 javax.swing.JPopupMenu createPopupMenu(Dockable selectedDockable, CompositeDockable compositeDockable)
          Creates a popup menu for the selected dockable and the other dockables in the dock of the selected dockable.
 

Method Detail

createPopupMenu

javax.swing.JPopupMenu createPopupMenu(Dockable selectedDockable,
                                       CompositeDockable compositeDockable)
Creates a popup menu for the selected dockable and the other dockables in the dock of the selected dockable. If the selected dockable is null, a popup menu for the composite dockable is created.

Parameters:
selectedDockable - The selected dockable.
compositeDockable - The dockables in the selected dock.
Returns:
A popup menu for the selected dockable and the other dockables in the dock.