Package org.scijava.menu
Class DefaultMenuService
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.service.AbstractService
-
- org.scijava.menu.DefaultMenuService
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Identifiable,Initializable,Locatable,Logged,MenuService,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,SciJavaService,Service,Versioned
public class DefaultMenuService extends AbstractService implements MenuService
Default service for keeping track of the application's menu structure.- Author:
- Curtis Rueden
- See Also:
ShadowMenu
-
-
Constructor Summary
Constructors Constructor Description DefaultMenuService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShadowMenugetMenu(String menuRoot)Gets the root node of a menu structure.protected voidonEvent(ModulesAddedEvent event)protected voidonEvent(ModulesRemovedEvent event)protected voidonEvent(ModulesUpdatedEvent event)-
Methods inherited from class org.scijava.service.AbstractService
getContext, setContext, toString
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority
-
Methods inherited from class org.scijava.AbstractContextual
context
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.menu.MenuService
createMenus, createMenus, getMenu
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
getMenu
public ShadowMenu getMenu(String menuRoot)
Description copied from interface:MenuServiceGets the root node of a menu structure.- Specified by:
getMenuin interfaceMenuService- Parameters:
menuRoot- the root of the desired menu structure (seeUIDetails.getMenuRoot()).
-
onEvent
protected void onEvent(ModulesAddedEvent event)
-
onEvent
protected void onEvent(ModulesRemovedEvent event)
-
onEvent
protected void onEvent(ModulesUpdatedEvent event)
-
-