|
|||||||||
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(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 |
---|
public static MenuItemManager getInstance()
public void addMenuItem(MenuItem item)
public void removeAllMenuItems(String sMenuID)
public void removeMenuItem(MenuItem item)
public MenuItem[] getAllAsArray(String sMenuID)
MenuManager
for MENU_ Constants.MenuContext
, use the hack MenuContextImpl.context
public MenuItem[] getAllAsArray(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(String id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |