org.scijava.menu
Interface MenuService

All Superinterfaces:
Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, Prioritized, RichPlugin, SciJavaPlugin, SciJavaService, Service
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
<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.
 
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Disposable
dispose
 

Method Detail

getMenu

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 (see UIDetails.getMenuRoot()).

createMenus

<T> T createMenus(MenuCreator<T> creator,
                  T menu)
Populates a UI-specific application menu structure.

Parameters:
creator - the MenuCreator to use to populate the menus.
menu - the destination menu structure to populate.

createMenus

<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 (see UIDetails.getMenuRoot()).
creator - the MenuCreator to use to populate the menus.
menu - the destination menu structure to populate.


Copyright © 2009–2014 SciJava. All rights reserved.