org.gudy.azureus2.pluginsimpl.local.ui.menus
Class MenuManagerImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.ui.menus.MenuManagerImpl
- All Implemented Interfaces:
- MenuManager
public class MenuManagerImpl
- extends Object
- implements MenuManager
- Author:
- Allan Crooks
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuManagerImpl
public MenuManagerImpl(UIManagerImpl _ui_manager)
addMenuItem
public MenuItem addMenuItem(String menuID,
String resource_key)
- Description copied from interface:
MenuManager
- Creates a menu item for the appropriate menu.
- Specified by:
addMenuItem
in interface MenuManager
- Parameters:
menuID
- The MENU_ identifier as defined above.resource_key
- ID of the menu, which is also used to retrieve the
textual name from the plugin language file.
- Returns:
- The newly created menu item.
addMenuItem
public MenuItem addMenuItem(MenuContext context,
String resource_key)
- Description copied from interface:
MenuManager
- Creates a menu item in a particular context.
MenuContext
instances can be retrieved from some plugin objects that support
menu items to be added to it.
- Specified by:
addMenuItem
in interface MenuManager
- Parameters:
context
- The menu context object which represents the place to
add a menu item.resource_key
- ID of the menu, which is also used to retrieve the
textual name from the plugin language file.
- Returns:
- The newly created menu item.
addMenuItem
public MenuItem addMenuItem(MenuItem parent,
String resource_key)
- Description copied from interface:
MenuManager
- Creates a menu item as a sub-item of the given menu item.
- Specified by:
addMenuItem
in interface MenuManager
- Parameters:
parent
- The MenuItem to add this new item to. The parent MenuItem
must have its style attribute to be set to "menu".resource_key
- ID of the menu, which is also used to retrieve the
textual name from the plugin language file.
- Returns:
- The newly created menu item.