-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SceneLifecycle for Java based Views #470
Comments
Just throwing this as a comment, if one really needs to access a dispose/clean-up method in a View, wouldn't the following logic apply: (?)
|
Hi @georgeVasiliu However, this aspect is not directly related to this issue here. It is not the goal to introduce a dispose/clean-up method in Views. Instead, the goal here is to enable clean-up via lifecycle listeners for ViewModels that belong to Non-FXML views. At the moment the SceneLifesycle only works for ViewModels that belong to an FXMLView, not JavaView. This is what needs to be implemented. |
Hello, thanks for the fast reply. I was not aware of the issue. I will dive
and search a bit through the code and see if I can come up with any ideas.
If I do, I will be sure to keep you updated.
…On 5 Jan 2018 2:58 pm, "Manuel Mauky" ***@***.***> wrote:
Hi @georgeVasiliu <https://github.com/georgevasiliu>
thanks for your comment. Basically this is correct. It's a valid strategy
for cleaning up the View if nessessary.
However, this aspect is not directly related to this issue here. It is not
the goal to introduce a dispose/clean-up method in Views. Instead, the goal
here is to enable clean-up via lifecycle listeners for ViewModels that
belong to Non-FXML views. At the moment the SceneLifesycle only works for
ViewModels that belong to an FXMLView, not JavaView. This is what needs to
be implemented.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#470 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZXnMbyN5bXx0D5qEvZr62r5VpS6K1Osks5tHhxXgaJpZM4L2lOz>
.
|
I'm happy to review Pull-Requests for this. |
With #381 we introduced a basic lifecycle concept for ViewModels.
At the moment this is only available for ViewModels that belong to a FXML-based view.
With this issue the same feature should be implemented for Java-based views.
The text was updated successfully, but these errors were encountered: