Interface MenuListener

    • Method Detail

      • sectionInserted

        default void sectionInserted​(Menu menu,
                                     int index)
        Called when a menu section has been inserted.
        Parameters:
        menu - The source of the event.
        index - Where the menu section was inserted.
      • sectionsRemoved

        default void sectionsRemoved​(Menu menu,
                                     int index,
                                     Sequence<Menu.Section> removed)
        Called when menu sections have been removed.
        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

        default void activeItemChanged​(Menu menu,
                                       Menu.Item previousActiveItem)
        Called when a menu's active item has changed.
        Parameters:
        menu - The menu that changed.
        previousActiveItem - What the previously active menu item was.