Open Blackdread opened 6 years ago
Some changes related to this were implemented in #58, the showView
methods now belongs to classes that extends from AbstractFxmlView
. Check the code changed and upgrade to version 2.1.6
You can inject your @FXMLView
annotated class as any other, and call getPresenter()
and others methods/
Both methods should return at least the AbstractFxmlView, but could useful to return an interface that would allow to get:
When using
or
Mainly useful for the first one.
It would allow to call getPresenter() on the returned View bean (newly instantiated or previous managed bean).
The use case is when a AbstractFxmlView and Controller are annotated with @ Scope("prototype"). With a modality mode passed, it is not possible to get the Controller and set some field in order to finish the initialization.