EMenuItem.CheckBoxNULL_ARRAY, SEPARATOR| Constructor and Description |
|---|
EMenu(java.lang.String text,
EMenuItem... items) |
EMenu(java.lang.String text,
java.util.List<EMenuItem> itemsList) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.JMenuItem |
createMenuItem()
Creates fresh GUI instance of this generic EMenuItem.
|
java.util.List<EMenuItem> |
getItems()
Returns unmodifiebale list of menu items.
|
protected void |
registerItem()
Register this menu item in EMenuBar.
|
void |
run()
Abstract method which executes command.
|
void |
setDynamicItems(java.util.List<? extends EMenuItem> dynamicItems) |
protected void |
updateMenuItem(javax.swing.JMenuItem item)
Updates appearance of menu item instance before popping up.
|
actionPerformed, getDescription, getMnemonicChar, getPath, getText, getToolTipText, isEnabled, isSelected, registerUpdatable, repeatLastCommand, shortcut, shortcut, toString, updateButtonspublic EMenu(java.lang.String text,
EMenuItem... items)
text - the menu item's displayed text. An "_" in the string
indicates the location of the "mnemonic" key for that entry.items - var-arg menu items. Null arguments are skipped.
MenuCommands.SEPARATOR arguments are separators.public EMenu(java.lang.String text,
java.util.List<EMenuItem> itemsList)
text - the menu item's displayed text. An "_" in the string
indicates the location of the "mnemonic" key for that entry.itemsList - items list. Null elements are skipped.
MenuCommands.SEPARATOR elements are separators.public java.util.List<EMenuItem> getItems()
public void setDynamicItems(java.util.List<? extends EMenuItem> dynamicItems)
protected void registerItem()
EMenuItemregisterItem in class EMenuItemprotected javax.swing.JMenuItem createMenuItem()
EMenuItemcreateMenuItem in class EMenuItemprotected void updateMenuItem(javax.swing.JMenuItem item)
EMenuItemupdateMenuItem in class EMenuItemitem - item to update.