FileDocCategorySizeDatePackage
MenuManager.javaAPI DocAzureus 3.0.3.43321Fri Aug 03 15:59:08 BST 2007org.gudy.azureus2.plugins.ui.menus

MenuManager

public interface MenuManager
Helper class to allow plugins to register their own menus. If you want to add menus to be available in tables, you should use the TableManager class.
author
amc1
see
org.gudy.azureus2.plugins.local.ui.tables.TableManager TableManager
since
3.0.0.7

Fields Summary
public static final String
MENU_TABLE
The menu used for tables - this value cannot be used directly to create menus used by tables, you need to use the TableManager class to create such menu items.
public static final String
MENU_SYSTRAY
The menu used for the system tray icon.
public static final String
MENU_DOWNLOAD_BAR
The menu used on download bars.
public static final String
MENU_MENUBAR
The "Plugins" menu on the menu bar.
public static final String
MENU_TRANSFERSBAR
The "transfers bar".
public static final String
MENU_TORRENT_MENU
The "Torrents" menu.
public static final String
MENU_DOWNLOAD_CONTEXT
All menus which are Download specific, such as download bars, the Torrent menu, torrent tables etc.
Constructors Summary
Methods Summary
public MenuItemaddMenuItem(java.lang.String menuID, java.lang.String resource_key)
Creates a menu item for the appropriate menu.

param
menuID The MENU_ identifier as defined above.
param
resource_key ID of the menu, which is also used to retrieve the textual name from the plugin language file.
return
The newly created menu item.

public MenuItemaddMenuItem(MenuItem parent, java.lang.String resource_key)
Creates a menu item as a sub-item of the given menu item.

param
parent The MenuItem to add this new item to. The parent MenuItem must have its style attribute to be set to "menu".
param
resource_key ID of the menu, which is also used to retrieve the textual name from the plugin language file.
return
The newly created menu item.