org.gudy.azureus2.ui.common.util
Class MenuItemManager

java.lang.Object
  extended by org.gudy.azureus2.ui.common.util.MenuItemManager

public class MenuItemManager
extends Object

Similar to TableContextMenuManager - this keeps references to created menu items by plugins to be used by external code.

Author:
amc1

Method Summary
 void addListener(MenuItemManagerListener l)
           
 void addMenuItem(MenuItem item)
           
 MenuItem[] getAllAsArray(String sMenuID)
          See MenuManager for MENU_ Constants.
For MenuContext, use the hack MenuContextImpl.context
 MenuItem[] getAllAsArray(String[] menu_ids)
          See MenuManager for MENU_ Constants.
For MenuContext, use the hack MenuContextImpl.context
static MenuItemManager getInstance()
          Return the static MenuManager instance
 void removeAllMenuItems(String sMenuID)
           
 void removeListener(MenuItemManagerListener l)
           
 void removeMenuItem(MenuItem item)
           
 void triggerMenuItemCleanup(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MenuItemManager getInstance()
Return the static MenuManager instance


addMenuItem

public void addMenuItem(MenuItem item)

removeAllMenuItems

public void removeAllMenuItems(String sMenuID)

removeMenuItem

public void removeMenuItem(MenuItem item)

getAllAsArray

public MenuItem[] getAllAsArray(String sMenuID)
See MenuManager for MENU_ Constants.
For MenuContext, use the hack MenuContextImpl.context


getAllAsArray

public MenuItem[] getAllAsArray(String[] menu_ids)
See MenuManager for MENU_ Constants.
For MenuContext, use the hack MenuContextImpl.context


addListener

public void addListener(MenuItemManagerListener l)

removeListener

public void removeListener(MenuItemManagerListener l)

triggerMenuItemCleanup

public void triggerMenuItemCleanup(String id)