public class DefaultMenuService extends AbstractService implements MenuService
ShadowMenu
Constructor and Description |
---|
DefaultMenuService() |
Modifier and Type | Method and Description |
---|---|
<T> T |
createMenus(MenuCreator<T> creator,
T menu)
Populates a UI-specific application menu structure.
|
<T> T |
createMenus(String menuRoot,
MenuCreator<T> creator,
T menu)
Populates a UI-specific menu structure.
|
ShadowMenu |
getMenu()
Gets the root node of the application menu structure.
|
ShadowMenu |
getMenu(String menuRoot)
Gets the root node of a menu structure.
|
protected void |
onEvent(ModulesAddedEvent event) |
protected void |
onEvent(ModulesRemovedEvent event) |
protected void |
onEvent(ModulesUpdatedEvent event) |
dispose, getContext, initialize, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
public ShadowMenu getMenu()
MenuService
getMenu
in interface MenuService
public ShadowMenu getMenu(String menuRoot)
MenuService
getMenu
in interface MenuService
menuRoot
- the root of the desired menu structure (see
UIDetails.getMenuRoot()
).public <T> T createMenus(MenuCreator<T> creator, T menu)
MenuService
createMenus
in interface MenuService
creator
- the MenuCreator
to use to populate the menus.menu
- the destination menu structure to populate.public <T> T createMenus(String menuRoot, MenuCreator<T> creator, T menu)
MenuService
createMenus
in interface MenuService
menuRoot
- the root of the menu structure to generate (see
UIDetails.getMenuRoot()
).creator
- the MenuCreator
to use to populate the menus.menu
- the destination menu structure to populate.protected void onEvent(ModulesAddedEvent event)
protected void onEvent(ModulesRemovedEvent event)
protected void onEvent(ModulesUpdatedEvent event)
Copyright © 2009–2015 SciJava. All rights reserved.