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.MenuHandler
MenuHandler.Adapter
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
cleanupMenuBar(Component component, MenuBar menuBar)
Deprecated.Called when a component to which this handler is attached loses the focus.boolean
configureContextMenu(Component component, Menu menu, int x, int y)
Deprecated.Called when the user right-clicks on a component to which this handler is attached.void
configureMenuBar(Component component, MenuBar menuBar)
Deprecated.Called when a component to which this handler is attached gains the focus.
-
-
-
Method Detail
-
configureMenuBar
public void configureMenuBar(Component component, MenuBar menuBar)
Deprecated.Description copied from interface:MenuHandler
Called when a component to which this handler is attached gains the focus.- Specified by:
configureMenuBar
in interfaceMenuHandler
- Parameters:
component
- The component that is hosting the menu bar.menuBar
- The menu bar to configure.
-
cleanupMenuBar
public void cleanupMenuBar(Component component, MenuBar menuBar)
Deprecated.Description copied from interface:MenuHandler
Called when a component to which this handler is attached loses the focus.- Specified by:
cleanupMenuBar
in interfaceMenuHandler
- Parameters:
component
- The component that is hosting the menu bar.menuBar
- The menu bar to clean up.
-
configureContextMenu
public boolean configureContextMenu(Component component, Menu menu, int x, int y)
Deprecated.Description copied from interface:MenuHandler
Called when the user right-clicks on a component to which this handler is attached.- Specified by:
configureContextMenu
in interfaceMenuHandler
- 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:
true
to stop propagation of context menu configuration;false
to allow it to continue (default).
-
-