Package blockly_robot.robot.logic.menu
Class Menu
java.lang.Object
blockly_robot.robot.logic.menu.Menu
Represents a menu that contains main and sub menus. The menu data is loaded
from a JSON file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the specified submenu in the specified main menu.getMain()Returns the main menu.Returns the sub menu for the specified main menu.
-
Constructor Details
-
Menu
public Menu()Constructs a Menu object and loads the menu data from a JSON file.
-
-
Method Details
-
getMain
Returns the main menu.- Returns:
- the main menu as a LinkedHashMap
-
getSub
Returns the sub menu for the specified main menu.- Parameters:
menu- the main menu- Returns:
- the sub menu as a LinkedHashMap
-
getId
Returns the ID of the specified submenu in the specified main menu.- Parameters:
menu- the main menusubmenu- the submenu- Returns:
- the ID of the submenu as a String
-