On 2/21/14, 11:36 AM, Aliaksei Kishko wrote:
Hello.
I allow me to express several opinions on the JavaFX:
5) Styles need get pseudo classes via setStyle(), for example:
menuItem.setStyle(":focused {-fx-background-color: yellow;}");
The Node#setStyle(String) API is analogous to the 'style' attribute of
HTML. To my knowledge, the style attribute in HTML does not allow for
pseudo-class state.
This kind of functionality does fall under the umbrella of
https://javafx-jira.kenai.com/browse/RT-17293 and I encourage you to add
your comments there.
6) Custom properties need be realized in easier manner as pseudo classes
and StyleableProperty inheritance. In my prototype I use my own wrapper,
but I think that it need be a part of JavaFX.
I'm not sure what you mean here. What is it your wrapper does?