Package ptolemy.vergil.toolbox
Interface MenuItemFactory
-
- All Known Implementing Classes:
BreakpointDialogFactory
,MenuActionFactory
,PortDialogFactory
,RadioMenuActionFactory
,RenameDialogFactory
,TransformationEditor.MatchingAttributeActionsFactory
public interface MenuItemFactory
This is an interface for factories that create menu items. Objects that implement this interface can be used in conjunction with a MenuCreator to implement context menu items.- Since:
- Ptolemy II 1.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer and Edward A. Lee
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.swing.JMenuItem
create(JContextMenu menu, NamedObj target)
Add an item to the given context menu that will operate on specified target, and return the menu item.
-
-
-
Method Detail
-
create
javax.swing.JMenuItem create(JContextMenu menu, NamedObj target)
Add an item to the given context menu that will operate on specified target, and return the menu item. Return null to decline to add a menu item for the specified target.- Parameters:
menu
- The context menu to add to.target
- The object that the menu item command will operate on.- Returns:
- A menu item, or null to decline to provide a menu item.
-
-