Package ui

Class StageManager


  • public final class StageManager
    extends java.lang.Object
    The StageManager class is used setup and run each GUI.

    Each Stage object is defined by its title, FXML file, and (optionally) stylesheet. The methods can then be called to instantly generate a separate window.

    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      StageManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void startMain​(javafx.stage.Stage stage)
      Start the main GUI.
      void startRepl​(javafx.stage.Stage stage)
      Start the REPL GUI.
      • Methods inherited from class java.lang.Object

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

      • StageManager

        public StageManager()
    • Method Detail

      • startMain

        public void startMain​(javafx.stage.Stage stage)
                       throws java.io.IOException
        Start the main GUI.

        The title, path, and stylesheet are hardcoded into this method.

        Parameters:
        stage - The stage which the interface will be displayed on
        Throws:
        java.io.IOException - If the path is not found
      • startRepl

        public void startRepl​(javafx.stage.Stage stage)
                       throws java.io.IOException
        Start the REPL GUI.

        The title and path are hardcoded into this method.

        Parameters:
        stage - The stage which the interface will be displayed on
        Throws:
        java.io.IOException - If the path is not found