Package org.scijava.menu
Interface MenuService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,RichPlugin,SciJavaPlugin,SciJavaService,Service,Versioned
- All Known Implementing Classes:
DefaultMenuService
public interface MenuService extends SciJavaService
Interface for service that tracks the application's menu structure.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> TcreateMenus(String menuRoot, MenuCreator<T> creator, T menu)Populates a UI-specific menu structure.default <T> TcreateMenus(MenuCreator<T> creator, T menu)Populates a UI-specific application menu structure.default ShadowMenugetMenu()Gets the root node of the application menu structure.ShadowMenugetMenu(String menuRoot)Gets the root node of a menu structure.-
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.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
default ShadowMenu getMenu()
Gets the root node of the application menu structure.
-
getMenu
ShadowMenu getMenu(String menuRoot)
Gets the root node of a menu structure.- Parameters:
menuRoot- the root of the desired menu structure (seeUIDetails.getMenuRoot()).
-
createMenus
default <T> T createMenus(MenuCreator<T> creator, T menu)
Populates a UI-specific application menu structure.- Parameters:
creator- theMenuCreatorto use to populate the menus.menu- the destination menu structure to populate.
-
createMenus
default <T> T createMenus(String menuRoot, MenuCreator<T> creator, T menu)
Populates a UI-specific menu structure.- Parameters:
menuRoot- the root of the menu structure to generate (seeUIDetails.getMenuRoot()).creator- theMenuCreatorto use to populate the menus.menu- the destination menu structure to populate.
-
-