Package org.eclipse.swt.events
Interface MenuListener
- All Known Implementing Classes:
MenuAdapter
public interface MenuListener
Classes which implement this interface provide methods
that deal with the hiding and showing of menus.
After creating an instance of a class that implements
this interface it can be added to a menu using the
addMenuListener method and removed using
the removeMenuListener method. When the
menu is hidden or shown, the appropriate method will
be invoked.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidSent when a menu is hidden.static MenuListenerStatic helper method to create aMenuListenerfor themenuHidden(MenuEvent e)) method, given a lambda expression or a method reference.voidSent when a menu is shown.static MenuListenerStatic helper method to create aMenuListenerfor themenuShown(MenuEvent e)) method, given a lambda expression or a method reference.
-
Method Details