MenuListener interface.
Classes that wish to deal with MenuEvents can
extend this class and override only the methods which they are
interested in.
An alternative to this class are the static helper methods
MenuListener#menuHiddenAdapter(java.
and
MenuListener#menuShownAdapter(java.,
which accept a lambda expression or a method reference that implements the event consumer.
MenuListener, MenuEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | menuHidden(MenuEvent
an event containing information about the menu operation e)Implements org. |
| public void | menuShown(MenuEvent
an event containing information about the menu operation e)Implements org. |
| MenuAdapter | back to summary |
|---|---|
| public MenuAdapter() | |
| menuHidden | back to summary |
|---|---|
| public void menuHidden(MenuEvent e) Implements org. Sent when a menu is hidden. The default behavior is to do nothing. | |
| menuShown | back to summary |
|---|---|
| public void menuShown(MenuEvent e) Implements org. Sent when a menu is shown. The default behavior is to do nothing. | |