public abstract class MenuAdapter extends Object implements MenuListener
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.util.function.Consumer)
and
MenuListener.menuShownAdapter(java.util.function.Consumer),
which accept a lambda expression or a method reference that implements the event consumer.
MenuListener,
MenuEvent,
Sample code and further information| Constructor and Description |
|---|
MenuAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
menuHidden(MenuEvent e)
Sent when a menu is hidden.
|
void |
menuShown(MenuEvent e)
Sent when a menu is shown.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmenuHiddenAdapter, menuShownAdapterpublic void menuHidden(MenuEvent e)
menuHidden in interface MenuListenere - an event containing information about the menu operationpublic void menuShown(MenuEvent e)
menuShown in interface MenuListenere - an event containing information about the menu operation
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.