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 : > > If setStyle doesn't work for graphic, then that is a

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-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 ne

CSS vs API modifications in *View classes

2014-05-28 Thread Tom Schindl
Hi, All views in JavaFX are virtual and the Cell instances are reused but this brings with it the problem that if you once modified a CSS styleable value (e.g. the textfill, font, ...) you are unable to return to a state where a CSS could be applied. I think Cell needs to provide reset methods fo