|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.ui.common.util.MenuItemManager
public class MenuItemManager
Similar to TableContextMenuManager - this keeps references to created menu items by plugins to be used by external code.
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 |
---|
public static MenuItemManager getInstance()
public void addMenuItem(MenuItem item)
public void removeAllMenuItems(java.lang.String sMenuID)
public void removeMenuItem(MenuItem item)
public MenuItem[] getAllAsArray(java.lang.String sMenuID)
MenuManager
for MENU_ Constants.MenuContext
, use the hack MenuContextImpl.context
public MenuItem[] getAllAsArray(java.lang.String[] menu_ids)
MenuManager
for MENU_ Constants.MenuContext
, use the hack MenuContextImpl.context
public void addListener(MenuItemManagerListener l)
public void removeListener(MenuItemManagerListener l)
public void triggerMenuItemCleanup(java.lang.String id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |