jrworkspace by
jTEM

de.jtem.jrworkspace.plugin.aggregators
Class MenuAggregator

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.Plugin
      extended by de.jtem.jrworkspace.plugin.aggregators.MenuAggregator
All Implemented Interfaces:
FrontendFlavor, MenuFlavor

public abstract class MenuAggregator
extends Plugin
implements MenuFlavor, FrontendFlavor


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.jtem.jrworkspace.plugin.flavor.FrontendFlavor
FrontendFlavor.FrontendListener
 
Constructor Summary
MenuAggregator()
           
 
Method Summary
 void addMenu(Class<?> context, double priority, JMenu menu, String... menuPath)
           
 void addMenuItem(Class<?> context, double priority, Action menuAction, String... menuPath)
           
 void addMenuItem(Class<?> context, double priority, JMenuItem item, String... menuPath)
           
 void addMenuSeparator(Class<?> context, double priority, String... menuPath)
           
 List<JMenu> getMenus()
          Returns the menus for this menu flavor
 double getPriority()
          Returns the priority of this set of menus.
 void install(Controller c)
          Is called when the plug-in is installed
 void removeAll(Class<?> context)
           
 void removeMenu(Class<?> context, JMenu menu)
           
 void removeMenuItem(Class<?> context, Action item)
           
 void removeMenuItem(Class<?> context, JMenuItem item)
           
 void reset()
           
 void setFrontendListener(FrontendFlavor.FrontendListener l)
          Sets the FrontendFlavor.FrontendListener of the plug-in
 void uninstall(Controller c)
          Id called when this plug-in is about to be uninstalled
 
Methods inherited from class de.jtem.jrworkspace.plugin.Plugin
equals, getPluginInfo, hashCode, restoreStates, storeStates, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.jtem.jrworkspace.plugin.flavor.MenuFlavor
getPerspective
 

Constructor Detail

MenuAggregator

public MenuAggregator()
Method Detail

addMenu

public void addMenu(Class<?> context,
                    double priority,
                    JMenu menu,
                    String... menuPath)

addMenuItem

public void addMenuItem(Class<?> context,
                        double priority,
                        Action menuAction,
                        String... menuPath)

addMenuItem

public void addMenuItem(Class<?> context,
                        double priority,
                        JMenuItem item,
                        String... menuPath)

addMenuSeparator

public void addMenuSeparator(Class<?> context,
                             double priority,
                             String... menuPath)

getMenus

public List<JMenu> getMenus()
Description copied from interface: MenuFlavor
Returns the menus for this menu flavor

Specified by:
getMenus in interface MenuFlavor
Returns:
the menu list

getPriority

public double getPriority()
Description copied from interface: MenuFlavor
Returns the priority of this set of menus. The actual order of menus in a menu bar of a perspective is determined trough to this number

Specified by:
getPriority in interface MenuFlavor
Returns:
a priority

install

public void install(Controller c)
             throws Exception
Description copied from class: Plugin
Is called when the plug-in is installed

Overrides:
install in class Plugin
Parameters:
c - the applications Controller
Throws:
Exception
See Also:
Controller}

removeAll

public void removeAll(Class<?> context)

removeMenu

public void removeMenu(Class<?> context,
                       JMenu menu)

removeMenuItem

public void removeMenuItem(Class<?> context,
                           Action item)

removeMenuItem

public void removeMenuItem(Class<?> context,
                           JMenuItem item)

reset

public void reset()

setFrontendListener

public void setFrontendListener(FrontendFlavor.FrontendListener l)
Description copied from interface: FrontendFlavor
Sets the FrontendFlavor.FrontendListener of the plug-in

Specified by:
setFrontendListener in interface FrontendFlavor
Parameters:
l - the listener

uninstall

public void uninstall(Controller c)
               throws Exception
Description copied from class: Plugin
Id called when this plug-in is about to be uninstalled

Overrides:
uninstall in class Plugin
Parameters:
c - this applications Controller
Throws:
Exception
See Also:
Controller}

jrworkspace by
jTEM

jTEM