org.apache.pivot.wtk
Class MenuHandler.Adapter
java.lang.Object
org.apache.pivot.wtk.MenuHandler.Adapter
- All Implemented Interfaces:
- MenuHandler
- Enclosing interface:
- MenuHandler
public static class MenuHandler.Adapter
- extends Object
- implements MenuHandler
Menu handler adapter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuHandler.Adapter
public MenuHandler.Adapter()
configureMenuBar
public void configureMenuBar(Component component,
MenuBar menuBar)
- Description copied from interface:
MenuHandler
- Called when a component to which this handler is attached gains the focus.
- Specified by:
configureMenuBar
in interface MenuHandler
cleanupMenuBar
public void cleanupMenuBar(Component component,
MenuBar menuBar)
- Description copied from interface:
MenuHandler
- Called when a component to which this handler is attached loses the focus.
- Specified by:
cleanupMenuBar
in interface MenuHandler
configureContextMenu
public boolean configureContextMenu(Component component,
Menu menu,
int x,
int y)
- Description copied from interface:
MenuHandler
- Called when the user right-clicks on a component to which this handler is attached.
- Specified by:
configureContextMenu
in interface MenuHandler
- Returns:
- true to stop propagation of context menu configuration;
false to allow it to continue.