Package fr.univlille.iutinfo.fxml
Class SceneController
java.lang.Object
fr.univlille.iutinfo.fxml.Controller
fr.univlille.iutinfo.fxml.SceneController
This abstract class set the minimum requirement to be a JavaFXML Scene controller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javafx.scene.SceneAScenecontainer to containParentroot attribute.protected javafx.stage.StageTheStagewhere display current scene.protected StringThe stage's title.Fields inherited from class fr.univlille.iutinfo.fxml.Controller
fxmlPath, root -
Constructor Summary
ConstructorsConstructorDescriptionSceneController(String fxmlPath, String title, javafx.stage.Stage stage) Scene controller constructor -
Method Summary
Methods inherited from class fr.univlille.iutinfo.fxml.Controller
getRoot, initialize
-
Field Details
-
title
The stage's title. -
stage
protected javafx.stage.Stage stageTheStagewhere display current scene. -
scene
protected javafx.scene.Scene sceneAScenecontainer to containParentroot attribute.
-
-
Constructor Details
-
SceneController
Scene controller constructor- Parameters:
fxmlPath- aStringrepresenting the fxml file path.title- aStringrepresenting the scene's title.stage- , aStageused to show current Scene.
-
-
Method Details
-
updateStage
This method load the FXML element into theStageattribute.- Specified by:
updateStagein classController- Throws:
IOException- in case of problem with the file path.
-
getStage
public javafx.stage.Stage getStage()- Returns:
- the
Stageattached to that Controller
-
getTitle
- Returns:
- the
Stringcontroller's title
-
getScene
public javafx.scene.Scene getScene()- Returns:
- the
Scenecontroller's scene
-