Class LazyFxControllerAndView<C,​V extends javafx.scene.Node>

  • All Implemented Interfaces:
    FxControllerAndView<C,​V>

    public class LazyFxControllerAndView<C,​V extends javafx.scene.Node>
    extends Object
    implements FxControllerAndView<C,​V>
    A FxControllerAndView implementation that takes a supplier to lazily load the actual view and controller when being on the JavaFX Application thread, which is not the case during constructor injection.

    The implementation is NOT threadsafe, since JavaFX GUI is supposed to work single threaded.

    Author:
    Rene Gielen