org.pentaho.platform.plugin.services.pluginmgr
Class BaseMenuProvider
java.lang.Object
org.pentaho.platform.plugin.services.pluginmgr.BaseMenuProvider
- All Implemented Interfaces:
- IMenuProvider
- Direct Known Subclasses:
- HtmlMenuProvider
public abstract class BaseMenuProvider
- extends Object
- implements IMenuProvider
BaseMenuProvider
public BaseMenuProvider()
getMenuBar
public abstract Object getMenuBar(String id,
String documentPath,
IPentahoSession session)
- Description copied from interface:
IMenuProvider
- Returns a menu bar object. The type of the object returned will depend upon the
implementor.
- Specified by:
getMenuBar
in interface IMenuProvider
- Parameters:
id
- The id of the menu to be returned. The menu will to be defined
in a XUL file e.g. pentaho-solutions/system/ui/menubar.xuldocumentPath
- The path to the file that contains the definition of
the menu e.g. system/ui/menubar.xulsession
- A session object that the IMenuProvider can use to filter
the menu items returned
- Returns:
- A menu bar object
getPopupMenu
public abstract Object getPopupMenu(String id,
String documentPath,
IPentahoSession session)
- Description copied from interface:
IMenuProvider
- Returns a popup menu object. The type of the object returned will depend upon the
implementor.
- Specified by:
getPopupMenu
in interface IMenuProvider
- Parameters:
id
- The id of the menu to be returned. The menu will to be defined
in a XUL file e.g. pentaho-solutions/system/ui/menubar.xuldocumentPath
- The path to the file that contains the definition of
the menu e.g. system/ui/menubar.xulsession
- A session object that the IMenuProvider can use to filter
the menu items returned
- Returns:
- A menu bar object