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

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

public class MenuItemManager
extends java.lang.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(java.lang.String sMenuID)
          See MenuManager for MENU_ Constants.
For MenuContext, use the hack MenuContextImpl.context
 MenuItem[] getAllAsArray(java.lang.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(java.lang.String sMenuID)
           
 void removeListener(MenuItemManagerListener l)
           
 void removeMenuItem(MenuItem item)
           
 void triggerMenuItemCleanup(java.lang.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(java.lang.String sMenuID)

removeMenuItem

public void removeMenuItem(MenuItem item)

getAllAsArray

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


getAllAsArray

public MenuItem[] getAllAsArray(java.lang.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(java.lang.String id)