Class HomePage
java.lang.Object
edu.ntnu.stud.idatt1005.team3.view.pages.HomePage
The home page of the application. The home page is the first page the user sees when opening the
application. It contains buttons for navigating to the different parts of the application.
-
Constructor Summary
ConstructorsConstructorDescriptionHomePage
(SceneController sceneController) Creates the home page of the application. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Scene
Creates a scene for the home page.javafx.scene.layout.VBox
getHomeElements
(SceneController sceneController) Creates the elements of the home page.javafx.scene.layout.StackPane
getRoot()
Creates a scene for the home page.
-
Constructor Details
-
HomePage
Creates the home page of the application.- Parameters:
sceneController
- The scene controller controlling the switching between scenes.- Throws:
FileNotFoundException
-
-
Method Details
-
getRoot
public javafx.scene.layout.StackPane getRoot()Creates a scene for the home page.- Returns:
- The scene for the home page.
-
createScene
public javafx.scene.Scene createScene()Creates a scene for the home page.- Returns:
- Returns the scene for the home page.
-
getHomeElements
public javafx.scene.layout.VBox getHomeElements(SceneController sceneController) throws FileNotFoundException Creates the elements of the home page.- Parameters:
sceneController
- The scene controller controlling the switching between scenes.- Returns:
- Returns the elements of the home page.
- Throws:
FileNotFoundException
- If the stylesheet file is not found.
-