Class MenuBarMerge

  • All Implemented Interfaces:
    IMenuMergeModel

    public class MenuBarMerge
    extends AbstractMenuMerge
    Represents the entire menu bar. Used to collect multiple JMenuMerge children into a single MenuMerge. Note that it cannot do somethings like create a new menu, because the JMenuBar is expected to already be created.
    • Constructor Detail

      • MenuBarMerge

        public MenuBarMerge​(java.lang.String menuId)
    • Method Detail

      • addSeparator

        protected void addSeparator​(javax.swing.JComponent menu)
        Description copied from class: AbstractMenuMerge
        Subclasses must define how "separator" components get added to the parent menu item.
        Specified by:
        addSeparator in class AbstractMenuMerge
      • createMenu

        public javax.swing.JComponent createMenu()
        Description copied from class: AbstractMenuMerge
        Create the parent menu item represented by this object, that all of its children should be contained in.
        Specified by:
        createMenu in class AbstractMenuMerge
      • install

        public javax.swing.JComponent install​(javax.swing.JComponent menu)
        Description copied from interface: IMenuMergeModel
        Merges this model into the menu. The JComponent will be either a CommandMenuBar or a JMenu
        Specified by:
        install in interface IMenuMergeModel
        Overrides:
        install in class AbstractMenuMerge