Class DefaultNoFXMLLinker

java.lang.Object
org.tentackle.fx.nofxml.DefaultNoFXMLLinker
All Implemented Interfaces:
NoFXMLLinker

@Service(NoFXMLLinker.class) public class DefaultNoFXMLLinker extends Object implements NoFXMLLinker
The default implementation of an NoFXMLLinker.
Injects the nodes, resources, invokes initialize and sets the view into the controller.

Notice that the old Initializable interface is not supported and the initialize() method must be annotated with FXML to be invoked, even if public.

  • Constructor Details

    • DefaultNoFXMLLinker

      public DefaultNoFXMLLinker()
      Creates a linker.
  • Method Details

    • link

      public void link(javafx.scene.Parent view, FxController controller, ResourceBundle resources)
      Description copied from interface: NoFXMLLinker
      Links the components and resources.
      Specified by:
      link in interface NoFXMLLinker
      Parameters:
      view - the view
      controller - the controller
      resources - the optional resources