Class SceneController

java.lang.Object
fr.univlille.iutinfo.fxml.Controller
fr.univlille.iutinfo.fxml.SceneController

public abstract class SceneController extends Controller
This abstract class set the minimum requirement to be a JavaFXML Scene controller
  • Field Details

    • title

      protected String title
      The stage's title.
    • stage

      protected javafx.stage.Stage stage
      The Stage where display current scene.
    • scene

      protected javafx.scene.Scene scene
      A Scene container to contain Parent root attribute.
  • Constructor Details

    • SceneController

      public SceneController(String fxmlPath, String title, javafx.stage.Stage stage)
      Scene controller constructor
      Parameters:
      fxmlPath - a String representing the fxml file path.
      title - a String representing the scene's title.
      stage - , a Stage used to show current Scene.
  • Method Details

    • updateStage

      public final void updateStage() throws IOException
      This method load the FXML element into the Stage attribute.
      Specified by:
      updateStage in class Controller
      Throws:
      IOException - in case of problem with the file path.
    • getStage

      public javafx.stage.Stage getStage()
      Returns:
      the Stage attached to that Controller
    • getTitle

      public String getTitle()
      Returns:
      the String controller's title
    • getScene

      public javafx.scene.Scene getScene()
      Returns:
      the Scene controller's scene