Class MenuItem

  • All Implemented Interfaces:

    
    public class MenuItem
    
                        

    Class representation of the menu item in the structure. If there's a defined submenu list, the item is a group. Implementations of MenuItemGroupingRule can use these to construct groups from provided flat items (matched by the id).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final int id
      public final Array<int> submenuIds
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuItem(int id) Constructor for single menu item.
      MenuItem(int id, Array<int> submenuIds) Constructor for menu item group.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MenuItem

        MenuItem(int id)
        Constructor for single menu item.
        Parameters:
        id - Id of the item.
      • MenuItem

        MenuItem(int id, Array<int> submenuIds)
        Constructor for menu item group.
        Parameters:
        id - If for the group item.
        submenuIds - Array of item ids contained in the group submenu.
    • Method Detail