When developing an application that separates into business logic and UI layer, is it ever wrong to use classes from UI packages? More specifically, is there any reason not to use the Property<T>
classes from the javafx
package?
The application in question is not very computation intensive, so I can deal with the overhead of the Property<T>
classes. bind()
ing values to one another provides a great deal of flexibility and would help with the control flow in my application, but it doesn't feel right to use a UI package in my business logic layer. The (very lose) reasoning behind that is, that they — apparently — have been designed for UIs. There must be a reason why they are not in java.util
.
Bonus question: Why are the Property<T>
classes in the javafx.beans
package in the first place and not in java.util
?