FileDocCategorySizeDatePackage
MenuItemListener.javaAPI DocAzureus 3.0.3.41991Thu Sep 13 09:25:16 BST 2007org.gudy.azureus2.plugins.ui.menus

MenuItemListener

public interface MenuItemListener
A listener that is triggered when the user selects a menu item
author
parg (Original ContextMenuItemListener)
author
tuxpaper (generic-izing and comments)

Fields Summary
Constructors Summary
Methods Summary
public voidselected(MenuItem menu, java.lang.Object target)
Menu item has been selected by the user. Note - this method will be called when a "deselection" takes place, like if the MenuItem has STYLE_CHECK or STYLE_RADIO (where a previously selected item has been deselected because another item has been selected instead). Therefore, you should check the state of the MenuItem, rather than assuming that it has been "activated".

param
menu Which menu item was selected
param
target What this menu item applies to. For the default implementation, target is null. Implementing classes may provide an object related to the menu selection.