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