Re: CSS vs API modifications in *View classes

2014-05-29 Thread David Grieve
If setStyle doesn't work for graphic, then that is a bug. I agree that css and user concurrency is black magic. Better documentation would help, but I'm not yet convinced that there is an API solution to the problem unless the API is up in *PropertyBase (e.g. init(T value), void reset()) On

Re: CSS vs API modifications in *View classes

2014-05-29 Thread Tom Schindl
May statement could be read wrong setStyle for graphics generally works unless you generate the image on the fly using writableimage, so you don't have a URL! Tom Von meinem iPhone gesendet Am 29.05.2014 um 13:22 schrieb David Grieve david.gri...@oracle.com: If setStyle doesn't work for

Re: CSS vs API modifications in *View classes

2014-05-28 Thread David Grieve
Using styles is preferable to setting the property value. If styles are used, then you don't have the problem you describe. An alternative, if styles are not used, is to cast the property to StyleableProperty and use applyStyle(null, value) instead of set. CSS then thinks that the value has