org.gudy.azureus2.ui.swt
Class MenuBuildUtils.MenuItemPluginMenuControllerImpl

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.MenuBuildUtils.MenuItemPluginMenuControllerImpl
All Implemented Interfaces:
MenuBuildUtils.PluginMenuController
Enclosing class:
MenuBuildUtils

public static class MenuBuildUtils.MenuItemPluginMenuControllerImpl
extends java.lang.Object
implements MenuBuildUtils.PluginMenuController

This is an implementation of the PluginMenuController interface for use with MenuItemImpl classes - note that this is not intended for use by subclasses of MenuItemImpl (like TableContextMenuItemImpl). The object passed at construction time is the object to be passed when selection listeners and fill listeners are notified.


Constructor Summary
MenuBuildUtils.MenuItemPluginMenuControllerImpl(java.lang.Object[] o)
           
 
Method Summary
 void buildSubmenu(MenuItem parent)
           
 org.eclipse.swt.widgets.Listener makeSelectionListener(MenuItem menu_item)
          This method should create a listener object which should be invoked when the given menu item is selected.
 void notifyFillListeners(MenuItem menu_item)
          This method will be invoked just before the given menu item is displayed in a menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuBuildUtils.MenuItemPluginMenuControllerImpl

public MenuBuildUtils.MenuItemPluginMenuControllerImpl(java.lang.Object[] o)
Method Detail

makeSelectionListener

public org.eclipse.swt.widgets.Listener makeSelectionListener(MenuItem menu_item)
Description copied from interface: MenuBuildUtils.PluginMenuController
This method should create a listener object which should be invoked when the given menu item is selected.

Specified by:
makeSelectionListener in interface MenuBuildUtils.PluginMenuController

notifyFillListeners

public void notifyFillListeners(MenuItem menu_item)
Description copied from interface: MenuBuildUtils.PluginMenuController
This method will be invoked just before the given menu item is displayed in a menu.

Specified by:
notifyFillListeners in interface MenuBuildUtils.PluginMenuController

buildSubmenu

public void buildSubmenu(MenuItem parent)
Specified by:
buildSubmenu in interface MenuBuildUtils.PluginMenuController