|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.ui.menus.MenuManagerImpl
public class MenuManagerImpl
Field Summary |
---|
Fields inherited from interface org.gudy.azureus2.plugins.ui.menus.MenuManager |
---|
MENU_DOWNLOAD_BAR, MENU_DOWNLOAD_CONTEXT, MENU_FILE_CONTEXT, MENU_MENUBAR, MENU_SYSTRAY, MENU_TABLE, MENU_TAG_CONTEXT, MENU_TORRENT_MENU, MENU_TRANSFERSBAR |
Constructor Summary | |
---|---|
MenuManagerImpl(UIManagerImpl _ui_manager)
|
Method Summary | |
---|---|
MenuItem |
addMenuItem(MenuContext context,
String resource_key)
Creates a menu item in a particular context. |
MenuItem |
addMenuItem(MenuItem parent,
String resource_key)
Creates a menu item as a sub-item of the given menu item. |
MenuItem |
addMenuItem(String menuID,
String resource_key)
Creates a menu item for the appropriate menu. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuManagerImpl(UIManagerImpl _ui_manager)
Method Detail |
---|
public MenuItem addMenuItem(String menuID, String resource_key)
MenuManager
On plugin unload, use MenuItem.remove()
or MenuItem.removeAllChildItems()
addMenuItem
in interface MenuManager
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.
public MenuItem addMenuItem(MenuContext context, String resource_key)
MenuManager
MenuContext
instances can be retrieved from some plugin objects that support
menu items to be added to it.
Example: When adding menus to UISWTStatusEntry
, call
UISWTStatusEntry#getMenuContext()
to get the MenuContext, and
then pass it into this function.
On plugin unload, use MenuItem.remove()
or MenuItem.removeAllChildItems()
addMenuItem
in interface MenuManager
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.
public MenuItem addMenuItem(MenuItem parent, String resource_key)
MenuManager
On plugin unload, use MenuItem.remove()
or MenuItem.removeAllChildItems()
addMenuItem
in interface MenuManager
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |