Interface MenuBuilderWidget


public interface MenuBuilderWidget
A widget for building menus.
Author:
Per-Erik
  • Method Details

    • createPopupMenu

      JPopupMenu createPopupMenu(String title, JMenuItem... items)
      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

      JPopupMenu createPopupMenu(String title, List<ModelingAction> actions)
      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.