Class MenuManagerImpl
java.lang.Object
com.biglybt.pifimpl.local.ui.menus.MenuManagerImpl
- All Implemented Interfaces:
MenuManager
-
Field Summary
FieldsFields inherited from interface com.biglybt.pif.ui.menus.MenuManager
MENU_DOWNLOAD_BAR, MENU_DOWNLOAD_CONTEXT, MENU_FILE_CONTEXT, MENU_MENUBAR, MENU_MENUBAR_TOOLS, MENU_SUBSCRIPTION_RESULT_CONTEXT, MENU_SYSTRAY, MENU_TABLE, MENU_TAG_CONTEXT, MENU_TORRENT_MENU, MENU_TRANSFERSBAR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMenuItem
(MenuContext context, String resource_key) Creates a menu item in a particular context.addMenuItem
(MenuItem parent, String resource_key) Creates a menu item as a sub-item of the given menu item.addMenuItem
(String menuID, String resource_key) Creates a menu item for the appropriate menu.getMenuItems
(String menu_id, String resource_key)
-
Field Details
-
ui_manager
-
-
Constructor Details
-
MenuManagerImpl
-
-
Method Details
-
addMenuItem
Description copied from interface:MenuManager
Creates a menu item for the appropriate menu.On plugin unload, use
MenuItem.remove()
orMenuItem.removeAllChildItems()
- Specified by:
addMenuItem
in interfaceMenuManager
- 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 with style
MenuItem.STYLE_PUSH
-
getMenuItems
- Specified by:
getMenuItems
in interfaceMenuManager
-