Class MenuListener.Adapter

  • All Implemented Interfaces:
    MenuListener
    Enclosing interface:
    MenuListener

    @Deprecated
    public static class MenuListener.Adapter
    extends java.lang.Object
    implements MenuListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Menu listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • sectionInserted

        public void sectionInserted​(Menu menu,
                                    int index)
        Deprecated.
        Description copied from interface: MenuListener
        Called when a menu section has been inserted.
        Specified by:
        sectionInserted in interface MenuListener
        Parameters:
        menu - The source of the event.
        index - Where the menu section was inserted.
      • sectionsRemoved

        public void sectionsRemoved​(Menu menu,
                                    int index,
                                    Sequence<Menu.Section> removed)
        Deprecated.
        Description copied from interface: MenuListener
        Called when menu sections have been removed.
        Specified by:
        sectionsRemoved in interface MenuListener
        Parameters:
        menu - The menu that changed.
        index - The starting index of the removal.
        removed - The actual menu sections that were removed from the menu.
      • activeItemChanged

        public void activeItemChanged​(Menu menu,
                                      Menu.Item previousActiveItem)
        Deprecated.
        Description copied from interface: MenuListener
        Called when a menu's active item has changed.
        Specified by:
        activeItemChanged in interface MenuListener
        Parameters:
        menu - The menu that changed.
        previousActiveItem - What the previously active menu item was.