Interface MenuBuilderWidget
public interface MenuBuilderWidget
A widget for building menus.
- Author:
- Per-Erik
-
Method Summary
Modifier and TypeMethodDescriptioncreatePopupMenu
(String title, List<ModelingAction> actions) Creates a popup menu from modeling actions.createPopupMenu
(String title, JMenuItem... items) Creates a JPopupMenu with the supplied menu items.
-
Method Details
-
createPopupMenu
Creates a JPopupMenu with the supplied menu items.- Parameters:
title
- The title of the new popup menu or null if no title is needed.items
- The items to populate the JPopupMenu with.- Returns:
- A JPopupMen populated with the supplied items.
-
createPopupMenu
Creates a popup menu from modeling actions.- Parameters:
actions
- The actions (including groups) to add to the menu.- Returns:
- A JPopupMenu populated with the supplied actions.
-