Class ExamplesController
java.lang.Object
com.JayPi4c.RobbiSimulator.controller.examples.ExamplesController
This controller contains all settings for the examples menus.
- Author:
- Jonas Pohl
-
Constructor Summary
ConstructorsConstructorDescriptionExamplesController
(MainStage stage) Constructor to create a new ExamplesController for the mainStage. -
Method Summary
-
Constructor Details
-
ExamplesController
Constructor to create a new ExamplesController for the mainStage.- Parameters:
stage
- the mainStage, this controller is for
-
-
Method Details
-
showProgramSelection
Shows an DialogWindow listing all programNames and its IDs. The user can select a program, which will be returned as an Optional containing the id.- Parameters:
programs
- a list of pairs of IDs and programNames, representing a program- Returns:
- the id of the selected Program
-
showTagSelection
Shows an DialogWindow listing all tags. The user can select a tag, which will be returned as an Optional.- Parameters:
tags
- a list of tags to be shown to the user- Returns:
- the selected tag
-