Package org.apache.pivot.wtk
Class MenuHandler.Adapter
- java.lang.Object
- 
- org.apache.pivot.wtk.MenuHandler.Adapter
 
- 
- All Implemented Interfaces:
- MenuHandler
 - Enclosing interface:
- MenuHandler
 
 @Deprecated public static class MenuHandler.Adapter extends java.lang.Object implements MenuHandler Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Menu handler adapter.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.MenuHandlerMenuHandler.Adapter
 
- 
 - 
Constructor SummaryConstructors Constructor Description Adapter()Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcleanupMenuBar(Component component, MenuBar menuBar)Deprecated.Called when a component to which this handler is attached loses the focus.booleanconfigureContextMenu(Component component, Menu menu, int x, int y)Deprecated.Called when the user right-clicks on a component to which this handler is attached.voidconfigureMenuBar(Component component, MenuBar menuBar)Deprecated.Called when a component to which this handler is attached gains the focus.
 
- 
- 
- 
Method Detail- 
configureMenuBarpublic void configureMenuBar(Component component, MenuBar menuBar) Deprecated.Description copied from interface:MenuHandlerCalled when a component to which this handler is attached gains the focus.- Specified by:
- configureMenuBarin interface- MenuHandler
- Parameters:
- component- The component that is hosting the menu bar.
- menuBar- The menu bar to configure.
 
 - 
cleanupMenuBarpublic void cleanupMenuBar(Component component, MenuBar menuBar) Deprecated.Description copied from interface:MenuHandlerCalled when a component to which this handler is attached loses the focus.- Specified by:
- cleanupMenuBarin interface- MenuHandler
- Parameters:
- component- The component that is hosting the menu bar.
- menuBar- The menu bar to clean up.
 
 - 
configureContextMenupublic boolean configureContextMenu(Component component, Menu menu, int x, int y) Deprecated.Description copied from interface:MenuHandlerCalled when the user right-clicks on a component to which this handler is attached.- Specified by:
- configureContextMenuin interface- MenuHandler
- Parameters:
- component- The component that is handling the menu.
- menu- The menu to be configured.
- x- The X location of the click.
- y- The Y location of the click.
- Returns:
- trueto stop propagation of context menu configuration;- falseto allow it to continue (default).
 
 
- 
 
-