Interface Menu

  • All Superinterfaces:
    MenuItem

    public interface Menu
    extends MenuItem

    Menu is an interface for an ordered list of MenuItems.

    • Method Detail

      • add

        MenuItem add​(MenuItem item)
        Add a menu item to the bar.
        Parameters:
        entry - The menu item to add.
        Returns:
        the item.
      • clear

        void clear()
        Clear the menu of all items.
      • adjustDividers

        void adjustDividers()
        Adjust by removing any dividers at the start or end.
      • setShowdisabled

        Menu setShowdisabled​(boolean value)
        Set whether disabled items in this menu should be shown.
        Parameters:
        value - True to show disabled items, False otherwise.
        Returns:
        This, for convenience.
      • getShowdisabled

        boolean getShowdisabled()
        Access whether disabled items in this menu should be shown.
        Returns:
        Current setting for show-disabled status (true to show disabled items, false to NOT show disabled items).