UI model for this component.
Create a stage containing this component.
Create a stage containing this component. The model is initialized on a separate thread.
Top level UI node for this component.
Dependencies for the view.
Dependencies for the view. Default implementation only provides the model as a dependency. Overwrite to add additional dependencies as needed.
dependencies injected into the view when it is created.
MVCfx is the "root" class for creation of UI components using MVCfx pattern. It instantiates and binds together the model, the controller, and the view (FXML).
The implementation of a class that extends MVCfx is very simple, it only needs instance of the model and information about location of the FXML resource. For example:
The implementation will include: * StopWatch extends MVCfx * StopWatchModel extends ModelFX * StopWatchController extends ControllerFX * StopWatch.fxml
The complete example in in demo module.
See more details on MVCfx see
org.scalafx.extras.mvcfx
documentation.