Package org.eclipse.swt.events
Interface MenuListener
- All Superinterfaces:
EventListener
,SWTEventListener
- All Known Implementing Classes:
MenuAdapter
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 TypeMethodDescriptionvoid
Sent when a menu is hidden.static MenuListener
Static helper method to create aMenuListener
for themenuHidden(MenuEvent e)
) method, given a lambda expression or a method reference.void
Sent when a menu is shown.static MenuListener
Static helper method to create aMenuListener
for themenuShown(MenuEvent e)
) method, given a lambda expression or a method reference.
-
Method Details