Class MenuBarMerge
java.lang.Object
com.inductiveautomation.ignition.designer.model.menu.AbstractMenuMerge
com.inductiveautomation.ignition.designer.model.menu.MenuBarMerge
- All Implemented Interfaces:
IMenuMergeModel
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.
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.designer.model.menu.AbstractMenuMerge
currentImplicitGroup, displayKey, groups, icon, log, menuId, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(JMenuMerge menu) protected void
addSeparator
(JComponent menu) Subclasses must define how "separator" components get added to the parent menu item.Create the parent menu item represented by this object, that all of its children should be contained in.install
(JComponent menu) Merges this model into the menu.
-
Constructor Details
-
MenuBarMerge
-
-
Method Details
-
addSeparator
Description copied from class:AbstractMenuMerge
Subclasses must define how "separator" components get added to the parent menu item.- Specified by:
addSeparator
in classAbstractMenuMerge
-
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 classAbstractMenuMerge
-
install
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 interfaceIMenuMergeModel
- Overrides:
install
in classAbstractMenuMerge