How to trigger property invalidation?

Werner Lehmann lehmann at media-interactive.de
Fri Nov 2 04:55:09 PDT 2012


Hi,

for an ObjectProperty<MyBean>, is it possible to trigger invalidation 
manually when MyBean.myProperty changes? Basically I'd like to call 
markInvalid() but it is private. And set() compares old and new value by 
reference before invalidating, so won't see the change either.

Workaround seems to be to copy the bean to another instance and assign 
the new instance to the object property.

Rgds
Werner


More information about the openjfx-dev mailing list