Package com.biglybt.ui.swt
Class MenuBuildUtils.MenuItemPluginMenuControllerImpl
- java.lang.Object
-
- com.biglybt.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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
objects
-
Constructor Summary
Constructors Constructor Description MenuItemPluginMenuControllerImpl(java.lang.Object[] o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildComplete(org.eclipse.swt.widgets.Menu menu)
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.
-
-
-
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 interfaceMenuBuildUtils.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 interfaceMenuBuildUtils.PluginMenuController
-
buildSubmenu
public void buildSubmenu(MenuItem parent)
- Specified by:
buildSubmenu
in interfaceMenuBuildUtils.PluginMenuController
-
buildComplete
public void buildComplete(org.eclipse.swt.widgets.Menu menu)
- Specified by:
buildComplete
in interfaceMenuBuildUtils.PluginMenuController
-
-