Class Controller

java.lang.Object
fr.univlille.iutinfo.fxml.Controller
Direct Known Subclasses:
ElementController, SceneController

public abstract class Controller extends Object
This abstract class set the minimum requirement to be a JavaFXML controller
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    A String representing the fxml file path.
    protected javafx.scene.Parent
    A Parent used to store root element of fxml file.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Controller(String fxmlPath)
    Controller constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.scene.Parent
     
    abstract void
    That method is called by the FXMLLoader, it generally used to add all the event handler.
    abstract void
    This method load the FXML element into the Stage attribute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fxmlPath

      protected String fxmlPath
      A String representing the fxml file path.
    • root

      protected javafx.scene.Parent root
      A Parent used to store root element of fxml file.
  • Constructor Details

    • Controller

      protected Controller(String fxmlPath)
      Controller constructor.
      Parameters:
      fxmlPath - a String representing the fxml file path.
  • Method Details

    • updateStage

      public abstract void updateStage() throws IOException
      This method load the FXML element into the Stage attribute.
      Throws:
      IOException - in case of problem with the file path.
    • initialize

      public abstract void initialize()
      That method is called by the FXMLLoader, it generally used to add all the event handler.
    • getRoot

      public javafx.scene.Parent getRoot()