Class SceneManager
java.lang.Object
edu.ntnu.idi.idatt.view.SceneManager
SceneManager class for managing objects to the stage.
This class provides methods for changing the root object to the scene, providing simple use of components to change between the pages
- Author:
- Pawel Sapula
-
Method Summary
-
Method Details
-
init
public static void init(javafx.stage.Stage stage, javafx.scene.Parent root) Method for intialization of the Scene Manager.This method enables initialization of the primary scene, based on the stage from the program entry point, and a page based on the page's root object.
- Parameters:
stage- - Application's stageroot- - The root object / fundamental object of a page
-
switchTo
public static void switchTo(javafx.scene.Parent root) Method for switching the scene's root variable.- Parameters:
root- - Parent JavaFX object.
-