com.buglabs.menu
Interface IMenuProvider

All Known Implementing Classes:
Menu

public interface IMenuProvider

Implementors provide a menu system to the end user. Clients can provide sub-menus.

Author:
ken

Method Summary
 void notifyMenuUpdate(java.lang.String path)
          Notify the menu provider that a menu node has changed.
 void registerMenu(java.lang.String path, IMenuNode menu)
           
 void unregisterMenu(java.lang.String path)
          Remove a submenu.
 

Method Detail

registerMenu

void registerMenu(java.lang.String path,
                  IMenuNode menu)
Parameters:
path - String denotion of path using '.' character as seperator. To contribute to the root menu pass an empty string or null. Example: "child1.subchild1.me".
menu - Reference to the sub-root menu.

notifyMenuUpdate

void notifyMenuUpdate(java.lang.String path)
Notify the menu provider that a menu node has changed. Should cause the menu system to refresh if the path is visible on the screen.

Parameters:
path -

unregisterMenu

void unregisterMenu(java.lang.String path)
Remove a submenu.

Parameters:
path -