public interface ActionRegistry
The register uses two ideas to position menus. One is menu id which identifies the menu. The other is the group name which fits a menu into a group between menu dividers.
| Modifier and Type | Method and Description |
|---|---|
void |
addContextMenuItem(String group,
ArooaAction action)
Add a pop-up menu item for an action.
|
void |
addContextSubMenu(String group,
ActionMenu menu)
At a sub menu to the pop-up menu for given group.
|
void |
addMainMenu(ActionMenu menu)
Add a menu to the menu bar.
|
void |
addMenuItem(String menuId,
String group,
ArooaAction action)
Add a menu item for an action.
|
void |
addSubMenu(String menuId,
String group,
ActionMenu menu)
Add a sub menu to a menu on the menu bar.
|
void addMainMenu(ActionMenu menu)
menu - void addSubMenu(String menuId, String group, ActionMenu menu)
menuId - The id of the menu to add to.group - menu - void addContextSubMenu(String group, ActionMenu menu)
group - menu - void addMenuItem(String menuId, String group, ArooaAction action)
menuId - group - action - void addContextMenuItem(String group, ArooaAction action)
group - action - Copyright © 2023. All rights reserved.