public abstract class MenuAdapter extends Object implements MenuListener
MenuListener
interface.
Classes that wish to deal with MenuEvent
s 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 informationConstructor 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, wait
menuHiddenAdapter, menuShownAdapter
public void menuHidden(MenuEvent e)
menuHidden
in interface MenuListener
e
- an event containing information about the menu operationpublic void menuShown(MenuEvent e)
menuShown
in interface MenuListener
e
- an event containing information about the menu operation
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.