Class Controller

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

public abstract class Controller extends Object
Cette classe abstraite définit le minimum requis pour controller un fichier .fxml.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    Un String représentant le chemin du fichier .fxml.
    protected javafx.scene.Parent
    Le 1er Parent du fichier .fxml.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    javafx.scene.Parent
     
    abstract void
    Cette méthode est appellée par le FXMLLoader.
    abstract void
    Cette méthode charge tous les éléments JavaFX et fait appel à la méthode initialize.

    Methods inherited from class java.lang.Object

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

    • fxmlPath

      protected String fxmlPath
      Un String représentant le chemin du fichier .fxml.
    • root

      protected javafx.scene.Parent root
      Le 1er Parent du fichier .fxml.
  • Constructor Details

    • Controller

      protected Controller(String fxmlPath)
      Parameters:
      fxmlPath - un String représentant le chemin du fichier fxml.
  • Method Details

    • updateStage

      public abstract void updateStage() throws IOException
      Cette méthode charge tous les éléments JavaFX et fait appel à la méthode initialize.
      Throws:
      IOException - en cas de problème avec le fichier .fxml.
    • initialize

      public abstract void initialize()
      Cette méthode est appellée par le FXMLLoader. Elle est généralement utile pour initialiser les gestionnaires d'évènements.
    • getRoot

      public javafx.scene.Parent getRoot()