public interface MenuListener extends SWTEventListener
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.
MenuAdapter,
MenuEvent| Modifier and Type | Method and Description |
|---|---|
void |
menuHidden(MenuEvent e)
Sent when a menu is hidden.
|
static MenuListener |
menuHiddenAdapter(Consumer<MenuEvent> c)
Static helper method to create a
MenuListener for the
menuHidden(MenuEvent e)) method, given a lambda expression or a method reference. |
void |
menuShown(MenuEvent e)
Sent when a menu is shown.
|
static MenuListener |
menuShownAdapter(Consumer<MenuEvent> c)
Static helper method to create a
MenuListener for the
menuShown(MenuEvent e)) method, given a lambda expression or a method reference. |
void menuHidden(MenuEvent e)
e - an event containing information about the menu operationvoid menuShown(MenuEvent e)
e - an event containing information about the menu operationstatic MenuListener menuHiddenAdapter(Consumer<MenuEvent> c)
MenuListener for the
menuHidden(MenuEvent e)) method, given a lambda expression or a method reference.c - the consumer of the eventstatic MenuListener menuShownAdapter(Consumer<MenuEvent> c)
MenuListener for the
menuShown(MenuEvent e)) method, given a lambda expression or a method reference.c - the consumer of the event
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.