-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixes OK button enabling property in Group Dialog #4799
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick update. This works but is bit too complicated. The updateComponents is called whenever the state of the dialog is updated and thus there is no need to use bindings. In the meantime somebody opened another PR #4801 on this issue and I would consider his fix to be more straightforward. Thus, please don't be disappointed if we accept #4801 as the fix for this issue.
However, you were on the right track and we should use the power of JavaFX bindings instead of the old-style update
mechanism. For validation there is a framework https://github.com/sialcasa/mvvmFX/wiki/Validation which allows to implement this kind of logic in a clean way. May I ask you to rework the code completely using this framework? If you are not in the mood to do this and prefer to work on something else, I would perfectly understand this.
Sorry for the strange situation.
Hi @tobiasdiez I understand the situation and I do agree with you about the other PR being more suitable.
I would like to work on this. Could you tell me exactly what all I will have to re-implement? Thank you for updating me about the situation and for the guidance. I look forward to keep contributing to JabRef. |
Thanks for your understanding. As of now the data in the group dialog is validated in the You can find this strategy live for example here:
|
Fixes issue #4783
Binded
nameField.textProperty()
to the OK button so that OK button gets enabled as soon as we enter name of the Group.