Class MenuBarListener.Adapter

  • All Implemented Interfaces:
    MenuBarListener
    Enclosing interface:
    MenuBarListener

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

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • itemInserted

        public void itemInserted​(MenuBar menuBar,
                                 int index)
        Deprecated.
        Description copied from interface: MenuBarListener
        Called when a menu bar item has been inserted.
        Specified by:
        itemInserted in interface MenuBarListener
        Parameters:
        menuBar - The menu bar that changed.
        index - The index where a new item was inserted.
      • itemsRemoved

        public void itemsRemoved​(MenuBar menuBar,
                                 int index,
                                 Sequence<MenuBar.Item> removed)
        Deprecated.
        Description copied from interface: MenuBarListener
        Called when menu bar items have been removed.
        Specified by:
        itemsRemoved in interface MenuBarListener
        Parameters:
        menuBar - The source of the event.
        index - The starting index where items were removed.
        removed - The sequence of removed items.
      • activeItemChanged

        public void activeItemChanged​(MenuBar menuBar,
                                      MenuBar.Item previousActiveItem)
        Deprecated.
        Description copied from interface: MenuBarListener
        Called when a menu bar's active item has changed.
        Specified by:
        activeItemChanged in interface MenuBarListener
        Parameters:
        menuBar - The source of the event.
        previousActiveItem - Which item was active previously.