Interface PageLoader

All Known Implementing Classes:
FXMLPageLoader

public interface PageLoader
Interface for page loading.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Get the .fxml pages controller
    javafx.scene.Parent
    load(String fxmlPath)
    Load method to load fxml page.
  • Method Details

    • load

      javafx.scene.Parent load(String fxmlPath) throws IOException
      Load method to load fxml page.
      Parameters:
      fxmlPath - path to .fxml mfile.
      Returns:
      returns the fxml file root node.
      Throws:
      IOException - exception on failing.
    • getController

      <T> T getController()
      Get the .fxml pages controller
      Type Parameters:
      T - controller type.
      Returns:
      page's controller.