Interface FxmlLoaderFactory

All Known Implementing Classes:
MicronautFxmlLoaderFactory

public interface FxmlLoaderFactory
Factory interface for providing DI-enabled instances of FXMLLoader
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.fxml.FXMLLoader
    get()
    Get an FXMLLoader without setting a location
    javafx.fxml.FXMLLoader
    get(URL location)
    Get an FXMLLoader for the given location
    <T> T
    Get the FXML controller (from a DI context)
  • Method Details

    • getControllerFactory

      <T> T getControllerFactory(Class<T> clazz)
      Get the FXML controller (from a DI context)
      Type Parameters:
      T - The class type of the controller
      Parameters:
      clazz - The controller class we are looking for
      Returns:
      A controller instance
    • get

      javafx.fxml.FXMLLoader get()
      Get an FXMLLoader without setting a location
      Returns:
      An FXMLLoader
    • get

      javafx.fxml.FXMLLoader get(URL location)
      Get an FXMLLoader for the given location
      Parameters:
      location - The location of the FXML resource
      Returns:
      An FXMLLoader