Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • 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 interface MenuHandler
        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 interface MenuHandler
        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 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:
        true to stop propagation of context menu configuration; false to allow it to continue (default).