Interface Menu.SectionListener

    • Method Detail

      • itemInserted

        void itemInserted​(Menu.Section section,
                          int index)
        Called when a menu item has been inserted.
        Parameters:
        section - The section that is changing.
        index - The index where the item was inserted.
      • itemsRemoved

        void itemsRemoved​(Menu.Section section,
                          int index,
                          Sequence<Menu.Item> removed)
        Called when menu items have been removed.
        Parameters:
        section - The section that has changed.
        index - The starting index of the removed items.
        removed - The sequence of the items that were removed.
      • nameChanged

        void nameChanged​(Menu.Section section,
                         java.lang.String previousName)
        Called when a section's name has changed.
        Parameters:
        section - The section that changed.
        previousName - The previous name for this section.