org.oddjob.arooa.design.actions
Interface ActionRegistry

All Known Implementing Classes:
ConfigurableMenus

public interface ActionRegistry

Register Menu Actions. Implementations will build menus from what is registered.

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.

Author:
rob

Method Summary
 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.
 

Method Detail

addMainMenu

void addMainMenu(ActionMenu menu)
Add a menu to the menu bar.

Parameters:
menu -

addSubMenu

void addSubMenu(String menuId,
                String group,
                ActionMenu menu)
Add a sub menu to a menu on the menu bar.

Parameters:
menuId - The id of the menu to add to.
group -
menu -

addContextSubMenu

void addContextSubMenu(String group,
                       ActionMenu menu)
At a sub menu to the pop-up menu for given group. If a menu has already been registered by the given menu's id then the previous definition may be re-used.

Parameters:
group -
menu -

addMenuItem

void addMenuItem(String menuId,
                 String group,
                 ArooaAction action)
Add a menu item for an action.

Parameters:
menuId -
group -
action -

addContextMenuItem

void addContextMenuItem(String group,
                        ArooaAction action)
Add a pop-up menu item for an action.

Parameters:
group -
action -