java.lang.Object
com.example.project.services.FXMLPageLoader
- All Implemented Interfaces:
PageLoader
FXML Loader wrapper class for the project to load the game screen FXML pages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
Get the .fxml pages controllerjavafx.scene.Parent
Load method to load fxml page.
-
Constructor Details
-
FXMLPageLoader
public FXMLPageLoader()constructor.
-
-
Method Details
-
load
Description copied from interface:PageLoader
Load method to load fxml page.- Specified by:
load
in interfacePageLoader
- Parameters:
fxmlPath
- path to .fxml mfile.- Returns:
- returns the fxml file root node.
- Throws:
IOException
- exception on failing.
-
getController
public <T> T getController()Description copied from interface:PageLoader
Get the .fxml pages controller- Specified by:
getController
in interfacePageLoader
- Type Parameters:
T
- controller type.- Returns:
- page's controller.
-