RE: JavaFX properties usage out of context?

2013-07-16 Thread Pedro Duque Vieira
+1

I would add that properties should actually be supported at the language
level. That is, having special java keywords that would create properties
and reduce all the code clutter you have to write every time you want to
create properties.

Regards,

-- 
Pedro Duque Vieira


Re: JavaFX properties usage out of context?

2013-07-16 Thread Tom Eugelink


Be aware that the binding of properties is lazy. That means that if a value changes, 
bound properties are not updated, they only get notified of the change. Serverside that 
may not be the preferred / expected behavior (binding libraries like JGoodies always 
update), so it may be necessary to short circuit the notification to always 
trigger the update.

Tom


On 2013-07-16 10:54, John C. Turnbull wrote:

I am very impressed with the JavaFX properties and bindings functionality
and feel that it is far more general in scope than just a UI toolkit like
JavaFX.  For me, I think the entire feature should be moved to a standard
Java package so that it can readily be used in non-JavaFX applications.

  


Is there any reason such as threading issues or some form of functional
dependency that would prevent JavaFX properties and bindings being used in a
non-JavaFX application such as a server-side component?  My testing seems to
suggest that they work just fine outside of a JavaFX context but I would
like to be sure.

  


Any thoughts on extracting this functionality from JavaFX and moving it to a
more general location in the Java package hierarchy?

  


Thanks,

  


-jct