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).
-
-
Field Summary
Fields Modifier and Type Field Description public final int
id
public final Array<int>
submenuIds
-
Method Summary
Modifier and Type Method Description -
-
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.
-
-
-
-