Class ExamplesController

java.lang.Object
com.JayPi4c.RobbiSimulator.controller.examples.ExamplesController

public class ExamplesController extends Object
This controller contains all settings for the examples menus.
Author:
Jonas Pohl
  • Constructor Details

    • ExamplesController

      public ExamplesController(MainStage stage)
      Constructor to create a new ExamplesController for the mainStage.
      Parameters:
      stage - the mainStage, this controller is for
  • Method Details

    • showProgramSelection

      public Optional<Integer> showProgramSelection(List<javafx.util.Pair<Integer,String>> programs)
      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

      public Optional<String> showTagSelection(List<String> tags)
      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