Package fr.univlille.iutinfo.fxml
Class Controller
java.lang.Object
fr.univlille.iutinfo.fxml.Controller
- Direct Known Subclasses:
ElementController,SceneController
This abstract class set the minimum requirement to be a JavaFXML controller
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.ParentgetRoot()abstract voidThat method is called by theFXMLLoader, it generally used to add all the event handler.abstract voidThis method load the FXML element into theStageattribute.
-
Field Details
-
fxmlPath
AStringrepresenting the fxml file path. -
root
protected javafx.scene.Parent rootAParentused to store root element of fxml file.
-
-
Constructor Details
-
Controller
Controller constructor.- Parameters:
fxmlPath- aStringrepresenting the fxml file path.
-
-
Method Details
-
updateStage
This method load the FXML element into theStageattribute.- Throws:
IOException- in case of problem with the file path.
-
initialize
public abstract void initialize()That method is called by theFXMLLoader, it generally used to add all the event handler. -
getRoot
public javafx.scene.Parent getRoot()
-